How to disable Cobertura in a child project when it is enabled by the parent pom Maven?

I have a lot of projects that inherit from my parent. I enable parental Cobertura coverage reports through the Maven profile, which is activated in our Jenkins CI builds. However, I want to disable Cobertura for one child project (when 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 would rather just skip the whole step and not generate an “empty” coverage report.

+4
source share
1 answer

Use the skip configuration item as a documented cobertura-maven-plugin .

+6
source

All Articles