It turns out there's a bug in the maven cobertura plugin documentation.
You need to wrap your <ignore> and <exclude> lines with <ignores> and
<excludes> respectively:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<configuration>
<instrumentation>
<ignores>
<ignore>com.gargantus.testing.*</ignore>
</ignores>
<excludes>
<exclude>**/*Test.class</exclude>
</excludes>
</instrumentation>
</configuration>
</plugin>
David
On Sun, 16 Jul 2006 05:01:51 -0700, Adam Hardy wrote:
I want to refine my use of cobertura to exclude the test classes and
some other
stuff, but I get this error:
[INFO] Failed to configure plugin parameters for:
org.codehaus.mojo:cobertura-maven-plugin:2.0
on the command line, specify: '-Dinstrumentation=VALUE'
Cause: Cannot find setter nor field in
org.codehaus.mojo.cobertura.configuration.ConfigInstrumentation for 'ignore'
What should 'VALUE' be? Similarly, mvn doesn't like 'exclude'. I'm not
finding an answer on google / maven / codehaus / cobertura websites.
This is the config in my POM - adapted from the docs on
http://mojo.codehaus.org/cobertura-maven-plugin/maven-reports.html Can
anyone see the problem?
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<configuration>
<instrumentation>
<ignore>com.gargantus.testing.*</ignore>
<exclude>**/*Test.class</exclude>
</instrumentation>
</configuration>
</plugin>
Thanks
Adam
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]