我有许多从父 pom 继承的项目。我通过在我们的 Jenkins CI 构建中激活的 Maven 配置文件在父项中启用 Cobertura 覆盖率报告。但是,我想为一个子项目禁用 Cobertura(同时从父 pom 获取其他所有内容)。实现这一目标的最佳方法是什么?
我的第一个想法是使用:
<configuration>
<instrumentation>
<excludes>
<exclude>**/*.class</exclude>
</excludes>
</instrumentation>
但我宁愿跳过整个步骤而不生成“空”覆盖率报告。