fix sonarcloud coverage rate issue
Change-Id: Ice1dedbb3fe2a1aa90e35186774f8b5a37632887
Issue-ID: MULTICLOUD-982
Signed-off-by: Liang Ding <liang.ding@intel.com>
diff --git a/artifactbroker/pom.xml b/artifactbroker/pom.xml
index 54983ef..53d6426 100644
--- a/artifactbroker/pom.xml
+++ b/artifactbroker/pom.xml
@@ -34,6 +34,10 @@
<version.logback>1.2.3</version.logback>
<policy.common.version>1.3.4</policy.common.version>
<policy.engine.version>1.3.5</policy.engine.version>
+ <sonar.language>java</sonar.language>
+ <sonar.coverage.jacoco.xmlReportPaths>
+ ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
+ </sonar.coverage.jacoco.xmlReportPaths>
</properties>
<modules>
<module>model</module>
@@ -138,7 +142,7 @@
<goal>prepare-agent</goal>
</goals>
<configuration>
- <destFile>${sonar.jacoco.reportPath}</destFile>
+ <destFile>${sonar.coverage.jacoco.xmlReportPaths}</destFile>
<append>true</append>
</configuration>
</execution>
@@ -149,7 +153,7 @@
<goal>report</goal>
</goals>
<configuration>
- <dataFile>${sonar.jacoco.reportPath}</dataFile>
+ <dataFile>${sonar.coverage.jacoco.xmlReportPaths}</dataFile>
</configuration>
</execution>
</executions>
@@ -208,7 +212,7 @@
<goal>prepare-agent</goal>
</goals>
<configuration>
- <destFile>${sonar.jacoco.reportPath}</destFile>
+ <destFile>${sonar.coverage.jacoco.xmlReportPaths}</destFile>
</configuration>
</execution>
<execution>
@@ -218,7 +222,7 @@
<goal>report</goal>
</goals>
<configuration>
- <dataFile>${sonar.jacoco.reportPath}</dataFile>
+ <dataFile>${sonar.coverage.jacoco.xmlReportPaths}</dataFile>
</configuration>
</execution>
</executions>