Which emma-maven-plugin should I be using?

2020-02-10 15:17发布

  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

2条回答
Anthone
2楼-- · 2020-02-10 16:02

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.

查看更多
Juvenile、少年°
3楼-- · 2020-02-10 16:11

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>
查看更多
登录 后发表回答