On Mon, Dec 22, 2008 at 4:04 AM, Stephen Connolly
<[email protected]> wrote:
>
> The Sonatype book is good, and available free online and there are other
> good tutorials. A 3-4 hours quick skim is most definitely not a waste of
> your time.
Actually I did read the sontatype book. I reread the chapter on "the
build lifecycle" and it sounds like (following what is described in
section 10.1) if I added the phase 'clean' and goal 'cobertura' that
it should run the cobertura goal when the mvn clean phase is reached?
Yes I don't see this happening. I even tried different phases.
Under the plugin section under build I have (other plugins removed for clarity)
<?xml version="1.0"?>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<configuration>
<instrumentation>
<excludes>
<exclude>com/foo/ondp/**/*Test.class</exclude>
</excludes>
</instrumentation>
<executions>
<execution>
<phase>clean</phase>
<goals>
<goal>cobertura</goal>
</goals>
</execution>
</executions>
</configuration>
</plugin>
</plugins>
</build>
If I manually run mvn cobertura:cobertura it runs fine.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]