Add sonar properties
[msb/discovery.git] / 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>