diff options
author | Priyadharshini <priyadharshini.b96@wipro.com> | 2020-02-20 06:45:56 +0000 |
---|---|---|
committer | Priyadharshini <priyadharshini.b96@wipro.com> | 2020-02-20 06:45:56 +0000 |
commit | 1389746c1a81aca1b82a5e1e43d25a2d6e8c9229 (patch) | |
tree | 7230c8fd29c83b8ecd0fa2fea26bc41d758b9508 /pom.xml | |
parent | 36970375b6009809b1682d86bd5a0e239283f515 (diff) |
Fix Sonar cloud migration coverage issue
Issue-ID: SO-2663
Signed-off-by: Priyadharshini <priyadharshini.b96@wipro.com>
Change-Id: I0fcfbdb91da2dc6dd74936e81bd99900ff972179
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -24,6 +24,8 @@ <siteNexusPath>/content/sites/site/org/onap/so/libs/${project.version}</siteNexusPath> <format.skipValidate>false</format.skipValidate> <format.skipExecute>true</format.skipExecute> + <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths> + <jacoco.version>0.8.5</jacoco.version> </properties> <distributionManagement> <repository> @@ -379,6 +381,29 @@ <version>2.9.8</version> </dependency> </dependencies> + </plugin> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>${jacoco.version}</version> + <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> </build> |