我正在使用maven cobertura插件在我的多模塊項目中報告代碼覆蓋率。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>
它現在支持。看到我的答案。 – vegemite4me 2013-09-23 14:00:58