【发布时间】:2014-12-16 01:03:19
【问题描述】:
我为 cobertura 定义了以下插件,如下所示。我必须运行 mvn cobertura:cobertura 才能获得代码覆盖率报告。如何编辑 pom 以便 mvn install 运行 cobertura ?
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
【问题讨论】:
标签: java maven code-coverage cobertura