- org.sonatype.maven.plugin :emma-maven-plugin:1.2
- org.codehaus.mojo :emma-maven-plugin:1.0-alpha-3
- org.apache.maven.plugins :maven-emma-plugin:0.5
问问题
4871 次
2 回答
17
Use jacoco - emma in no longer supported. Jacoco supports java 7.
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.5.6.201201232323</version>
<executions>
<execution>
<id>jacoco-initialize</id>
<phase>initialize</phase>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-site</id>
<phase>package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
于 2012-03-02T13:01:23.217 回答
2
我不确定哪一个是最好的。我知道几乎没有关于 sonatype 插件的任何文档(除了这个博客)。另外我认为 apache 相当旧,所以我个人会尝试使用 codehaus 插件。
于 2012-03-02T11:44:45.830 回答