Hi,
I've been trying to exclude some source files from my Cobertura reports,
using the following configuration (among others):
----------
<project>
...
<build>
...
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<configuration>
<instrumentation>
<excludes>
<exclude>**/hc/lobby/LobbyDecoderFactory.*</exclude>
<exclude>**/hc/whine/*.*</exclude>
</excludes>
</instrumentation>
</configuration>
<executions>
<execution>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
</plugin>
</plugins>
</reporting>
<dependencies>
...
</project>
-----
As far as I can understand, that's exactly the configuration specified in
the plugin documentation.
I've also tried specifying the full paths to the classes to be excluded
(starting from se/jadestone/...). However, no matter what I do, this
configuration seems to be ignored and Cobertura always loads all the files.
The plugin version is 2.0, and the Cobertura version is 1.7 (I haven't tried
specifying an explicit dependency on Cobertura).
Another thing: when I tried to check out the plugin source from the
indicated location on page
http://mojo.codehaus.org/cobertura-maven-plugin/source-repository.html, the
links point to the wrong place.
Does anybody know the right way to configure this plugin for excluding files
or a way for me to troubleshoot my configuration?
Thanks,
Petter
Cell: +46 704 40 30 25
Direct: +46 8 442 75 95
Fax: +46 8 24 05 08
www.jadestone.se
Björns Trädgårdsgränd 1, 116 21 Stockholm, Sweden
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email