...
- Add the 'sonar.java.coveragePlugin=emma' when executing the maven plugin. This can be set in pom.xml or in command line.
As it is possible for surefire and Cobertura, reusing already generated Emma reports is possible: the 'sonar.emma.reportPath' must be defined to indicate the directory where the .ec and the .em Emma files are generated.
...
Or use the 'reuseReports' mode:
Code Block title reuseReports mode language html/xml <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> <!-- Path to the .ec and .em Emma files --> <sonar.emma.reportPath>emmaDir</sonar.emma.reportPath>
| Info | ||
|---|---|---|
| ||
Note that only reports of offline instrumentation are currently supported (*.ec and *.em files). XML or HTML formats are not. |
...

