【发布时间】:2011-04-15 16:10:45
【问题描述】:
我正在使用 maven cobertura 插件来报告我的多模块项目中的代码覆盖率。
问题是我不知道如何为项目中的所有模块生成一份报告。
到目前为止,我已经为每个模块生成了单独的报告,但是为整个项目提供一份报告会更好。
我的父 pom 配置:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.4</version>
<inherited>true</inherited>
<executions>
<execution>
<phase>test-compile</phase>
<goals>
<goal>clean</goal>
<goal>cobertura</goal>
</goals>
</execution>
</executions>
</plugin>
【问题讨论】: