我应该使用哪个emma-maven-plugin?

Ste*_*art 12 plugins emma version maven

  1. org.sonatype.maven.plugin:emma-maven-plugin:1.2
  2. org.codehaus.mojo:emma-maven-plugin:1.0-alpha-3
  3. org.apache.maven.plugins:maven-emma-plugin:0.5

And*_*wik 17

不再支持使用jacoco-emma.Jacoco支持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>
Run Code Online (Sandbox Code Playgroud)

  • 我有理由开始使用带有jenkins的声纳.如果您使用jenkins,请不要将emma添加到您的pom中 - 只需调用emma:emma. (3认同)

THe*_*per 2

我不确定哪一个是最好的。我确实知道几乎没有任何关于 sonatype 插件的文档(除了这个博客)。另外我认为 apache 相当老了,所以我个人会尝试 codehaus 插件。