Hi,

could you attach your pom.xml and the log of maven execution as :

mvn -e -X
org.codehaus.mojo:dashboard-maven-plugin:1.0-SNAPSHOT:persist>maven.log

best regards

David Vicente


Mick Knutson-4 wrote:
> 
> Well, I added the plugin prefix to my pom.xml, then ran the full command
> and
> this is what I get:
> 
> C:\opt\baselogic\yoursos>mvn
> org.codehaus.mojo:dashboard-maven-plugin:1.0-SNAPSHOT:persist
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   yoursos
> [INFO]   Utilities Common (Module Group)
> [INFO]   Common-Exception
> [INFO]   Common-Jar
> [INFO]   YourSOS EJB3
> [INFO]   YourSOS - war
> [INFO]   YourSOS EAR
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Required goal not found:
> org.codehaus.mojo:dashboard-maven-plugin:1.0-SNAPSHOT:persist
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Sun Nov 04 14:10:08 PST 2007
> [INFO] Final Memory: 2M/5M
> [INFO]
> ------------------------------------------------------------------------
> 
> 
> 
> 
> On 11/3/07, dvicente <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi all,
>>
>> as described in dashboard documentation :
>> http://mojo.codehaus.org/dashboard-maven-plugin/
>>
>> you must add this in your pom.xml or settings.xml to use properly the
>> dashboard plugin:
>>
>> <pluginRepositories>
>>     <pluginRepository>
>>         <id>Codehaus Snapshots</id>
>>         <url> http://snapshots.repository.codehaus.org/</url>
>>     </pluginRepository>
>> </pluginRepositories>
>>
>> But even if this configuration is well done, Maven doesn't recognize the
>> "mvn dashboard-report:dashboard" command.
>>
>> and to work fine, you must run "mvn
>> org.codehaus.mojo:dashboard-maven-plugin:1.0-SNAPSHOT:dashboard" command
>> instead of "mvn dashboard-report:dashboard" or "mvn
>> org.codehaus.mojo:dashboard-maven-plugin:1.0-SNAPSHOT:persist" command
>> instead of "mvn dashboard-report:persist".
>>
>> See :
>>
>>
>> http://www.nabble.com/Make-a-Codehaus-plugin-works-on-a-local-configuration-tf4297606s177.html
>> or
>> http://www.nabble.com/Multimodule-code-coverage-report-tf4511339s177.html
>> or
>> http://jira.codehaus.org/browse/MOJO-899
>>
>> In the project's beginning, i decided to modify the goal prefix to
>> "dashboard-report" instead of the default's one by adding in the
>> pom.xmlof
>> the dashboard plugin :
>>
>> ...
>> <build>
>> ....
>> <plugins>
>>         <plugin>
>>       <artifactId>maven-plugin-plugin</artifactId>
>>       <configuration>
>>               <goalPrefix>dashboard-report</goalPrefix>
>>       </configuration>
>>     </plugin>
>> ...
>> </plugins>
>> ...
>> </build>
>> ....
>>
>> I think it's The Maven resolution problem of "dashboard-report".
>>
>> Maven does not resolve properly the plugin prefix.
>>
>> it's for that : "mvn dashboard-report:dashboard" or "mvn
>> dashboard-report:persist"doesn't work correctly.
>>
>> For the next release , i will post a vote to "[email protected] "
>> and
>> "[EMAIL PROTECTED]" mailing lists to delete this goalPrefix and let
>> the
>> default's one which works fine.
>>
>> Mick Knutson-4 wrote:
>> >
>> > Ok, I got something different.
>> >
>> >
>> > I put this in my plugin section:
>> >             <plugin>
>> >                 <groupId>org.codehaus.mojo</groupId>
>> >                 <artifactId>dashboard-maven-plugin</artifactId>
>> >                 <version>1.0-SNAPSHOT</version>
>> >
>> >                 <!--jar file that has the jdbc driver -->
>> >                 <dependencies>
>> >                     <dependency>
>> >                         <groupId>mysql</groupId>
>> >                         <artifactId>mysql-connector-java</artifactId>
>> >                         <version>5.1.5</version>
>> >                     </dependency>
>> >                 </dependencies>
>> >                 <configuration>
>> >                     <dialect>${hibernate.dialect}</dialect>
>> >                     <driverClass>${jdbc.driverClass}</driverClass>
>> >                     <connectionUrl>${dashboard.connectionUrl
>> > }</connectionUrl>
>> >                     <username>tro</username>
>> >                     <password>tro</password>
>> >                 </configuration>
>> >
>> >             </plugin>
>> >
>> > I put this into my report plugin section:
>> >             <plugin>
>> >                 <groupId>org.codehaus.mojo</groupId>
>> >                 <artifactId>dashboard-maven-plugin</artifactId>
>> >             </plugin>
>> >
>> >
>> > But I get this error when running "mvn dashboard:persist -e -X"
>> >
>> > [INFO] Searching repository for plugin with prefix: 'dashboard'.
>> > [DEBUG] Loading plugin prefixes from group: triemax
>> > [DEBUG] Skipping disabled repository Codehaus Snapshots
>> > [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
>> > [DEBUG] Skipping disabled repository Codehaus Snapshots
>> > [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
>> > [DEBUG] Skipping disabled repository Codehaus Snapshots
>> > [DEBUG] Skipping disabled repository Codehaus Snapshots
>> > [DEBUG] build-helper-maven-plugin: resolved to version 1.0 from
>> repository
>> > central
>> > [DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo::7 for project:
>> > null:build-helper-maven-plugin:maven-plugin:1.0 from the repository.
>> > [DEBUG] Retrieving parent-POM:
>> org.apache.maven.plugins:maven-plugins::8
>> > for
>> > project: null:maven-compiler-plugin:maven-plugin:2.0.2 from the
>> > repository.
>> > [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for
>> > project:
>> > org.apache.maven.plugins:maven-plugins:pom:8 from the repository.
>> > [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
>> > org.apache.maven:maven-parent:pom:5 from the repository.
>> > [DEBUG] Skipping disabled repository Backup
>> > [DEBUG] Skipping disabled repository central
>> > [DEBUG] dashboard-maven-plugin: using locally installed snapshot
>> > [DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo-sandbox::2 for
>> > project:
>> > org.codehaus.mojo:dashboard-maven-plugin:maven-plugin:1.0-SNAPSHOTfrom
>> > the r
>> > epository.
>> > [DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo::11 for project:
>> > null:mojo-sandbox:pom:2 from the repository.
>> > [DEBUG] dashboard-maven-plugin: using locally installed snapshot
>> > [DEBUG] Skipping disabled repository Codehaus Snapshots
>> > [DEBUG] maven-eclipse-plugin: resolved to version 2.3 from repository
>> > central
>> > [DEBUG] Retrieving parent-POM:
>> org.apache.maven.plugins:maven-plugins::7
>> > for
>> > project: org.apache.maven.plugins:maven-eclipse-plugin:maven-plugin:2.3
>> > from
>> > t
>> > he repository.
>> > [DEBUG] Retrieving parent-POM:
>> > org.apache.maven:maven-plugin-surrogate-parent::5 for project:
>> > org.apache.maven.plugins:maven-plugins:pom:7 from the reposit
>> > ory.
>> > [DEBUG] Skipping disabled repository Codehaus Snapshots
>> > [DEBUG] maven-ejb-plugin: resolved to version 2.1 from repository
>> central
>> > [DEBUG] Skipping disabled repository Codehaus Snapshots
>> > [DEBUG] smc-maven-plugin: resolved to version 1.0-alpha-1 from local
>> > repository
>> > [DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo::9 for project:
>> > null:smc-maven-plugin:maven-plugin:1.0-alpha-1 from the repository.
>> > [DEBUG] Retrieving parent-POM:
>> > org.apache.maven.plugins:maven-plugin-parent::2.0 for project:
>> > null:maven-install-plugin:maven-plugin:2.1 from the repositor
>> > y.
>> > [DEBUG] Adding managed dependencies for unknown:maven-install-plugin
>> > [DEBUG]   org.apache.maven:maven-project:jar:2.0
>> > [DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
>> > [DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4
>> > [DEBUG] Retrieving parent-POM:
>> org.apache.maven.plugins:maven-plugins::3
>> > for
>> > project: null:maven-jar-plugin:maven-plugin:2.1 from the repository.
>> > [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for
>> > project:
>> > org.apache.maven.plugins:maven-plugins:pom:3 from the repository.
>> > [DEBUG] Skipping disabled repository Codehaus Snapshots
>> > [DEBUG] maven-war-plugin: resolved to version 2.0.2 from repository
>> > central
>> > [DEBUG] Skipping disabled repository Codehaus Snapshots
>> > [DEBUG] maven-site-plugin: resolved to version 2.0-beta-5 from
>> repository
>> > central
>> > [DEBUG] Retrieving parent-POM:
>> org.apache.maven.plugins:maven-plugins::1
>> > for
>> > project: null:maven-site-plugin:maven-plugin:2.0-beta-5 from the
>> > repository.
>> > [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
>> > project:
>> > org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
>> > [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
>> > org.apache.maven:maven-parent:pom:1 from the repository.
>> > [DEBUG] Skipping disabled repository Codehaus Snapshots
>> > [DEBUG] maven-dashboard-plugin: using locally installed snapshot
>> > [DEBUG] Artifact not found - using stub model: Unable to determine the
>> > latest version
>> >
>> >   org.apache.maven.plugins:maven-dashboard-plugin:pom:LATEST
>> >
>> >
>> > [DEBUG] Using defaults for missing POM
>> > org.apache.maven.plugins:maven-dashboard-plugin:pom:LATEST
>> > [DEBUG] maven-dashboard-plugin: using locally installed snapshot
>> > [DEBUG] Artifact not found - using stub model: Unable to determine the
>> > release version
>> >
>> >   org.apache.maven.plugins:maven-dashboard-plugin:pom:RELEASE
>> >
>> >
>> > [DEBUG] Using defaults for missing POM
>> > org.apache.maven.plugins:maven-dashboard-plugin:pom:RELEASE
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > [ERROR] BUILD ERROR
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > [INFO] The plugin 'org.apache.maven.plugins:maven-dashboard-plugin'
>> does
>> > not
>> > exist or no valid version could be found
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > [DEBUG] Trace
>> > org.apache.maven.lifecycle.LifecycleExecutionException: The plugin '
>> > org.apache.maven.plugins:maven-dashboard-plugin' does not exist or no
>> > valid
>> > version cou
>> > ld be found
>> >         at
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
>> > DefaultLifecycleExecutor.java:1286)
>> >         at
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(
>> > DefaultLifecycleExecutor.java:1522)
>> >         at
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds
>> > (DefaultLifecycleExecutor.java:386)
>> >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
>> > DefaultLifecycleExecutor.java:138)
>> >         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
>> :334)
>> >         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>> >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >         at sun.reflect.NativeMethodAccessorImpl.invoke(
>> > NativeMethodAccessorImpl.java:39)
>> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> > DelegatingMethodAccessorImpl.java:25)
>> >         at java.lang.reflect.Method.invoke(Method.java:585)
>> >         at org.codehaus.classworlds.Launcher.launchEnhanced(
>> Launcher.java
>> > :315)
>> >         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> >         at
>> > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
>> > :430)
>> >         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> > Caused by:
>> org.apache.maven.plugin.version.PluginVersionNotFoundException:
>> > The plugin 'org.apache.maven.plugins:maven-dashboard-plugin' does not
>> > exist
>> > or n
>> > o valid version could be found
>> >         at
>> >
>> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion
>> > (DefaultPluginVersionManager.java:228)
>> >         at
>> >
>> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion
>> > (DefaultPluginVersionManager.java:90)
>> >         at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(
>> > DefaultPluginManager.java:166)
>> >         at
>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
>> > DefaultLifecycleExecutor.java:1257)
>> >         ... 14 more
>> >
>> >
>> >
>> > I have the dashboard-report:dashboard working fine, but not the
>> persist.
>> >
>> >
>> >
>> >
>> > On 11/2/07, Lee Meador <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Its dashboard:persist according to
>> >> http://mojo.codehaus.org/dashboard-maven-plugin/plugin-info.html but
>> >> dashboard-report:persist according to
>> >> http://mojo.codehaus.org/dashboard-maven-plugin/plugin-info.html
>> >>
>> >> I suggest you try it without the -report part. The list of goals is
>> >> auto-generated while the other page comes from some docs that someone
>> >> typed in. It may be out of date.
>> >>
>> >> -- Lee
>> >>
>> >> On Nov 1, 2007 1:16 PM, Mick Knutson <[EMAIL PROTECTED]> wrote:
>> >> > I have the following:
>> >> >
>> >> >             <plugin>
>> >> >                 <groupId>org.codehaus.mojo</groupId>
>> >> >                 <artifactId>dashboard-maven-plugin</artifactId>
>> >> >                 <version>1.0-SNAPSHOT</version>
>> >> >
>> >> >                 <configuration>
>> >> >                     <dialect>${hibernate.dialect}</dialect>
>> >> >                     <driverClass>${jdbc.driverClass}</driverClass>
>> >> >                     <connectionUrl>${dashboard.connectionUrl
>> >> > }</connectionUrl>
>> >> >                     <username>tro</username>
>> >> >                     <password>test</password>
>> >> >                 </configuration>
>> >> >
>> >> >
>> >> >             </plugin>
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > I get the following error when I run "mvn dashboard-report:persist
>> -e
>> >> -X"
>> >> >
>> >> >
>> >> > [DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo::11 for
>> project:
>> >> > null:mojo-sandbox:pom:2 from the repository.
>> >> > [DEBUG] dashboard-maven-plugin: using locally installed snapshot
>> >> > [INFO]
>> >> >
>> >>
>> ------------------------------------------------------------------------
>> >> > [ERROR] BUILD FAILURE
>> >> > [INFO]
>> >> >
>> >>
>> ------------------------------------------------------------------------
>> >> > [INFO] Required goal not found: dashboard-report:persist
>> >> > [INFO]
>> >> >
>> >>
>> ------------------------------------------------------------------------
>> >> > [DEBUG] Trace
>> >> > org.apache.maven.BuildFailureException: Required goal not found:
>> >> > dashboard-report:persist
>> >> >         at
>> >> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
>> (
>> >> > DefaultLifecycleExecutor.java:1538)
>> >> >         at
>> >> >
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds
>> >> > (DefaultLifecycleExecutor.java:386)
>> >> >         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
>> >> > DefaultLifecycleExecutor.java:138)
>> >> >         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
>> >> :334)
>> >> >         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java
>> :125)
>> >> >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>> >> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)
>> >> >         at sun.reflect.NativeMethodAccessorImpl.invoke(
>> >> > NativeMethodAccessorImpl.java:39)
>> >> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> >> > DelegatingMethodAccessorImpl.java:25)
>> >> >         at java.lang.reflect.Method.invoke(Method.java:585)
>> >> >         at org.codehaus.classworlds.Launcher.launchEnhanced(
>> >> Launcher.java
>> >> > :315)
>> >> >         at org.codehaus.classworlds.Launcher.launch(Launcher.java
>> :255)
>> >> >         at org.codehaus.classworlds.Launcher.mainWithExitCode(
>> >> Launcher.java
>> >> > :430)
>> >> >         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> >> > [INFO]
>> >> >
>> >>
>> ------------------------------------------------------------------------
>> >> > [INFO] Total time: 2 seconds
>> >> > [INFO] Finished at: Thu Nov 01 11:13:50 PDT 2007
>> >> > [INFO] Final Memory: 3M/6M
>> >> > [INFO]
>> >> >
>> >>
>> ------------------------------------------------------------------------
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> >
>> >> > Thanks,
>> >> > Mick Knutson
>> >> >
>> >> > http://www.baselogic.com
>> >> > http://www.blincmagazine.com
>> >> > http://www.djmick.com
>> >> > http://www.myspace.com/mickknutson
>> >> > http://www.myspace.com/djmick_dot_com
>> >> > http://www.myspace.com/sexybeotches
>> >> > http://www.thumpradio.com
>> >> > ---
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> -- Lee Meador
>> >> Sent from gmail. My real email address is lee AT leemeador.com
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> > --
>> >
>> > Thanks,
>> > Mick Knutson
>> >
>> > http://www.baselogic.com
>> > http://www.blincmagazine.com
>> > http://www.djmick.com
>> > http://www.myspace.com/mickknutson
>> > http://www.myspace.com/djmick_dot_com
>> > http://www.myspace.com/sexybeotches
>> > http://www.thumpradio.com
>> > ---
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-m2--dashboard-error....-tf4733205s177.html#a13562043
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> 
> Thanks,
> Mick Knutson
> 
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/djmick_dot_com
> http://www.myspace.com/sexybeotches
> http://www.thumpradio.com
> ---
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-m2--dashboard-error....-tf4733205s177.html#a13584358
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to