org.codehaus.mojo:cobertura-maven-plugin:2.1 << means that Maven is still using version 2.1, despite you having configured a dependency on the 2.0 version.
Specify the version number in the <plugins> section. Also, perhaps try [2.0] to "lock down" the version. Wayne On 6/13/07, Bill Brown <[EMAIL PROTECTED]> wrote:
Greetings: I'm using jdk 1.5 cobertura 1.7 cobertura-maven-plugin 2.0 (because of the 2.1 100% complete) error I am using these 2 dependencies. <dependency> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.0</version> </dependency> <dependency> <groupId>cobertura</groupId> <artifactId>cobertura</artifactId> <version>1.7</version> </dependency> I am using this build plugin: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <executions> <execution> <goals> <goal>clean</goal> </goals> </execution> </executions> </plugin> I am using this reporting plugin: <reporting> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.0</version> </plugin> </plugins> </reporting> When I run the mvn cobertura:cobertura target I get the following error: [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'cobertura'. [INFO] org.apache.maven.plugins: checking for updates from com.eb [INFO] org.codehaus.mojo: checking for updates from com.eb [INFO] artifact org.codehaus.mojo:cobertura-maven-plugin: checking for updates from com.eb [INFO] ---------------------------------------------------------------------------- [INFO] Building eb [INFO] task-segment: [clean, cobertura:cobertura] [INFO] ---------------------------------------------------------------------------- [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for updates from com.eb [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking for updates from com.eb [INFO] clean:clean [INFO] Deleting directory C:\Documents and Settings\eb\My Documents\workspace\eb\target [INFO] Deleting directory C:\Documents and Settings\eb\My Documents\workspace\eb\target\classes [INFO] Deleting directory C:\Documents and Settings\eb\My Documents\workspace\eb\target\test-classes [ERROR] project-execute : com.eb:eb:war:1.0.0.0-SNAPSHOT ( task-segment: [clean, cobertura:cobertura] ) Diagnosis: Error configuring: org.codehaus.mojo:cobertura-maven-plugin. Reason: Unable to parse the created DOM for plugin configuration FATAL ERROR: Error executing Maven for a project [ERROR] reactor-execute : C:\Documents and Settings\eb\My Documents\workspace\eb Diagnosis: Error configuring: org.codehaus.mojo:cobertura-maven-plugin. Reason: Unable to parse the created DOM for plugin configuration FATAL ERROR: Error executing Maven for a project [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to configure plugin parameters for: org.codehaus.mojo:cobertura-maven-plugin:2.1 on the command line, specify: '-Dcheck=VALUE' Cause: Class name which was explicitly given in configuration using 'implementation' attribute: 'org.codehaus.mojo.cobertura.configuration.ConfigCheck' cannot be loaded [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 second [INFO] Finished at: Wed Jun 13 09:49:06 CDT 2007 [INFO] Final Memory: 3M/6M [INFO] ------------------------------------------------------------------------ [INFO] Error for project: eb (during clean) [INFO] ------------------------------------------------------------------------ [INFO] Failed to configure plugin parameters for: org.codehaus.mojo:cobertura-maven-plugin:2.1 on the command line, specify: '-Dcheck=VALUE' Cause: Class name which was explicitly given in configuration using 'implementation' attribute: 'org.codehaus.mojo.cobertura.configuration.ConfigCheck' cannot be loaded [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [ERROR] reactor-execute : C:\Documents and Settings\eb\My Documents\workspace\eb FATAL ERROR: Error executing Maven for a project [INFO] BUILD ERRORS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 second [INFO] Finished at: Wed Jun 13 09:49:06 CDT 2007 [INFO] Final Memory: 3M/6M [INFO] ------------------------------------------------------------------------ Does anyone here know how to fix this? Thanks. Bill. -- View this message in context: http://www.nabble.com/issue-with-cobertura---maven2--plugin-build-tf3915408s177.html#a11101878 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]