Hey,

I'm trying to run the maven-clover-plugin to generate a code coverage
report. It instruments my sources, and copies them to target/clover/src and
target/clover/generated-sources.  A problem arises when the plugin invokes
the compiler:compile plugin. Output looks like:

[INFO] [compiler:compile]
[DEBUG] Using compiler 'javac'.
[DEBUG] Source directories: [d:\myartifact\target\clover\src
 D:\myartifact\target\clover\generated-sources\groovy-stubs\main
 D:\myartifact\src\main\java]


I end up with lots of duplicate class errors because it tries to compile the
instrumented sources along with the non-instrumented source. I wonder is
there a way to control the compiler plugin to exclude /src/main/java ? I am
executing this plugin from the command line like 'mvn clover:instrument'.

Thanks!

Reply via email to