Add sonar properties 25/9325/1
authorHuabingZhao <zhao.huabing@zte.com.cn>
Wed, 30 Aug 2017 07:57:06 +0000 (15:57 +0800)
committerHuabingZhao <zhao.huabing@zte.com.cn>
Wed, 30 Aug 2017 07:58:56 +0000 (15:58 +0800)
Issue-Id: MSB-60
Change-Id: I1aada00961fdd1896399a6588f84ab73512ef5f8
Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
pom.xml

diff --git a/pom.xml b/pom.xml
index a021437..3f4ede4 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     <version.output>target/version</version.output>
     
     <onap.nexus.javadocs-url>dav:https://nexus.onap.org/content/sites/site/org/onap/msb/discovery/${project.version}</onap.nexus.javadocs-url>
+    
+    <sonar.language>java</sonar.language>
+    <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
+    <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
+    <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
    </properties>
 
   <modules>
           <artifactId>versions-maven-plugin</artifactId>
           <version>2.3</version>
         </plugin>
-
-
+        <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>sonar-maven-plugin</artifactId>
+         <version>3.2</version>
+        </plugin>
         <plugin>
           <artifactId>maven-resources-plugin</artifactId>
           <version>2.7</version>