Which emma-maven-plugin should I be using?

北城以北 提交于 2019-12-18 04:37:20

问题


  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

回答1:


I'm not sure which one is the best. I do know that there is hardly any documentation on the sonatype plugin (other than this blog). Also I think the apache one is rather old, so personally I would try the codehaus plugin.




回答2:


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>


来源:https://stackoverflow.com/questions/9531608/which-emma-maven-plugin-should-i-be-using

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!