Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which emma-maven-plugin should I be using?

  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
like image 831
Stewart Avatar asked Mar 02 '12 10:03

Stewart


1 Answers

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>
like image 146
Andrzej Jozwik Avatar answered Oct 01 '22 21:10

Andrzej Jozwik