diff options
author | efiacor <fiachra.corcoran@est.tech> | 2020-03-04 20:43:51 +0000 |
---|---|---|
committer | efiacor <fiachra.corcoran@est.tech> | 2020-03-04 20:43:57 +0000 |
commit | b1ce4e066413a06cd2a2223180b8faac2e763e9f (patch) | |
tree | 2994a3b6bff81e8e2d6d5daf3eebfc08be503e58 | |
parent | 5972d3a80dcde06518f08ed5a21c5ae99fd6c170 (diff) |
SonarCloud migration fix
Signed-off-by: efiacor <fiachra.corcoran@est.tech>
Change-Id: Ieea0d8b5b81a8bad37f6fb0ed2d6ba2fe95d8949
Issue-ID: DMAAP-1402
-rwxr-xr-x | pom.xml | 26 |
1 files changed, 23 insertions, 3 deletions
@@ -48,10 +48,8 @@ <sonar.language>java</sonar.language> <sonar.skip>false</sonar.skip> - <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath> - <sonar.jacoco.reportPaths>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPaths> - <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath> + <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths> <sonar.projectVersion>${project.version}</sonar.projectVersion> <docker.skip.build>false</docker.skip.build> @@ -435,6 +433,28 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <executions> + <execution> + <id>prepare-agent</id> + <goals> + <goal>prepare-agent</goal> + </goals> + </execution> + <execution> + <id>report</id> + <goals> + <goal>report</goal> + </goals> + <configuration> + <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile> + <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> </plugins> </pluginManagement> </build> |