jacoco-maven-plugin
<properties> <org.eclipse.persistence.version>2.7.0</org.eclipse.persistence.version> <maven-shade-plugin.version>3.0.0</maven-shade-plugin.version> <sonar-jacoco-listeners.version>4.12.0.11033</sonar-jacoco-listeners.version> <avro-maven-plugin.version>1.8.2</avro-maven-plugin.version> <skipTests>false</skipTests> <skip.integration.tests>true</skip.integration.tests> <sonar.host.url>http://xxx:8000</sonar.host.url> <sonar.language>java</sonar.language> <sonar.sources>src/main/java</sonar.sources> <sonar.binaries>target/classes</sonar.binaries> <sonar.tests>src/test/java</sonar.tests> <sonar.test.binaries>target/test-classes</sonar.test.binaries> <sonar.libraries>target/*.jar</sonar.libraries> <sonar.junit.reportsPath>build/test-reports</sonar.junit.reportsPath> <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> <sonar.jacoco.reportPaths>build/test-reports/jacoco.exec</sonar.jacoco.reportPaths> </properties>
<plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.7.9</version> <executions> <execution> <goals> <goal>prepare-agent</goal> </goals> </execution> </executions> <configuration> <destFile>${sonar.jacoco.reportPaths}</destFile> <excludes> <exclude>com.XXX</exclude> </excludes> </configuration> </plugin>
<plugin> <groupId>org.sonarsource.scanner.maven</groupId> <artifactId>sonar-maven-plugin</artifactId> <version>3.2</version> </plugin>