[ http://jira.codehaus.org/browse/MOJO-184?page=all ]
Carlos Sanchez updated MOJO-184:
--------------------------------
Component: (was: sandbox)
cobertura
> cobertura-maven-plugin: Lifecycle.xml caused error trying to run cobertura
> plugin
> ---------------------------------------------------------------------------------
>
> Key: MOJO-184
> URL: http://jira.codehaus.org/browse/MOJO-184
> Project: Mojo
> Type: Bug
> Components: cobertura
> Versions: 2.0.1
> Environment: RHEL 4.0 Linux, Maven 2.0.1
> Reporter: Matt Hicks
>
>
> In order to get the cobertura plugin to run, I had to change the lifecycle
> definition from:
> <lifecycles>
> <lifecycle>
> <id>cobertura</id>
> <phases>
> <phase>
> <id>process-classes</id>
> <executions>
> <execution>
> <goals>
> <goal>instrument</goal>
> </goals>
> </execution>
> </executions>
> </phase>
> <phase>
> <id>test</id>
> <executions>
> <execution>
> <goals>
> <goal>org.apache.maven.plugins:maven-surefire-plugin:test</goal>
> </goals>
> <configuration>
>
> <classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory>
> <ignoreFailures>true</ignoreFailures>
> <forkMode>once</forkMode>
> </configuration>
> </execution>
> </executions>
> </phase>
> </phases>
> </lifecycle>
> </lifecycles>
> to:
> <lifecycles>
> <lifecycle>
> <id>cobertura</id>
> <phases>
> <phase>
> <id>process-classes</id>
> <executions>
> <execution>
> <goals>
> <goal>instrument</goal>
> </goals>
> </execution>
> </executions>
> </phase>
> </phases>
> </lifecycle>
> </lifecycles>
> otherwise, Maven kept complaining that the plugin
> 'org.apache.maven.plugins:maven-surefire-plugin' was not found in the
> cobertura-maven-plugin.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira