I have many projects which inherit from a parent pom. I enable Cobertura coverage reports in the parent via a Maven profile that is activated in our Jenkins CI builds. However, I want to disable Cobertura for one child project (while getting everything else from the parent pom). What is the best way to achieve this?
My first thought is to use :
<configuration>
<instrumentation>
<excludes>
<exclude>**/*.class</exclude>
</excludes>
</instrumentation>
but I'd rather just skip the entire step and not gen开发者_如何学编程erate an "empty" Coverage report.
Use the 'skip' configuration item as documented cobertura-maven-plugin.
精彩评论