Move Jacoco to xml 97/101797/1
authorOfir Sonsino <os0695@intl.att.com>
Sun, 16 Feb 2020 16:57:06 +0000 (18:57 +0200)
committerOfir Sonsino <os0695@intl.att.com>
Sun, 16 Feb 2020 16:57:06 +0000 (18:57 +0200)
Change-Id: I19ba1e4b76523e6ee9912fedc42dc14eb5370c40
Issue-ID: SDC-2740
Signed-off-by: Ofir Sonsino <os0695@intl.att.com>
pom.xml

diff --git a/pom.xml b/pom.xml
index d799f83..645efbb 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -34,7 +34,6 @@
 
     <properties>
         <maven-checkstyle-plugin.version>2.17</maven-checkstyle-plugin.version>
-        <jacoco.skip>true</jacoco.skip>
         <maven.compiler.source>1.8</maven.compiler.source>
         <maven.compiler.target>1.8</maven.compiler.target>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <nexus.registry>nexus3.onap.org:10001</nexus.registry>
         <nexus.proxy>https://nexus.onap.org</nexus.proxy>
         <sitePath>/content/sites/site/org/onap/sdc/workflow/${project.version}</sitePath>
+               
+               <!-- Sonar properties -->
+               <sonar.coverage.jacoco.xmlReportPaths>
+                       ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
+               </sonar.coverage.jacoco.xmlReportPaths>
     </properties>
 
     <parent>
                             <goal>report</goal>
                         </goals>
                         <configuration>
-                            <dataFile>target/jacoco.exec</dataFile>
-                            <outputDirectory>target/jacoco-ut</outputDirectory>
+                            <destFile>${sonar.jacoco.reportPath}</destFile>
                         </configuration>
                     </execution>
                 </executions>