Fix SONAR Jacoco plugin 69/14869/1
authorOfir Sonsino <os0695@att.com>
Sun, 24 Sep 2017 12:59:14 +0000 (15:59 +0300)
committerOfir Sonsino <os0695@att.com>
Sun, 24 Sep 2017 12:59:26 +0000 (15:59 +0300)
Issue-ID: VID-60
Change-Id: Id0b99f24be5dcc7fa7d925b7cb02547d4221374d
Signed-off-by: Ofir Sonsino <os0695@att.com>
epsdk-app-onap/pom.xml

index e9f4225..0fb1e2b 100755 (executable)
@@ -34,7 +34,7 @@
         <sonar.language>java</sonar.language>\r
         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>\r
         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>\r
-        <sonar.jacoco.reportPath>${project.build.directory}/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>\r
+        <sonar.jacoco.reportPath>${project.build.directory}/code-coverage/jacoco.exec</sonar.jacoco.reportPath>\r
         <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>\r
         <sonar.projectVersion>${project.version}</sonar.projectVersion>\r
        </properties>\r
                 <artifactId>sonar-maven-plugin</artifactId>\r
                 <version>3.2</version>\r
             </plugin>\r
+                       <plugin>\r
+                               <groupId>org.jacoco</groupId>\r
+                               <artifactId>jacoco-maven-plugin</artifactId>\r
+                               <version>0.7.7.201606060606</version>\r
+                               <configuration>\r
+                                       <dumpOnExit>true</dumpOnExit>\r
+                               </configuration>\r
+                               <executions>\r
+                                       <execution>\r
+                                               <id>jacoco-initialize-unit-tests</id>\r
+                                               <goals>\r
+                                                       <goal>prepare-agent</goal>\r
+                                               </goals>\r
+                                               <configuration>\r
+                                                       <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>\r
+                                               </configuration>\r
+                                       </execution>\r
+                               </executions>\r
+                       </plugin>\r
                </plugins>\r
        </build>\r
 \r