<name>${project.artifactId}</name>
<description>${project.artifactId}</description>
+ <properties>
+ <sonar.jacoco.reportPath>${project.basedir}/../../target/jacoco.exec</sonar.jacoco.reportPath>
+ </properties>
+
<dependencyManagement>
<dependencies>
<dependency>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
- <id>prepare-ut-agent</id>
- <phase>process-test-classes</phase>
+ <id>pre-unit-test</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
- <destFile>${sonar.jacoco.reportPath}</destFile>
+ <destFile>${project.build.directory}/code-coverage/jacoco.exec</destFile>
<propertyName>jacoco.agent.ut.arg</propertyName>
</configuration>
</execution>
<goal>prepare-agent</goal>
</goals>
<configuration>
- <destFile>${sonar.jacoco.itReportPath}</destFile>
+ <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
<propertyName>jacoco.agent.it.arg</propertyName>
</configuration>
</execution>