aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHuabingZhao <zhao.huabing@zte.com.cn>2017-08-30 15:57:06 +0800
committerHuabingZhao <zhao.huabing@zte.com.cn>2017-08-30 15:58:56 +0800
commit916ac5d7f5c181b97b4eb0f424aeec61fa2b53f6 (patch)
tree66cab88e80b62af91a7d635e8dcfacc3379763e1
parent31a82df7ae6fbfd8dd99931b1fb5c2cbaeda68b9 (diff)
Add sonar properties
Issue-Id: MSB-60 Change-Id: I1aada00961fdd1896399a6588f84ab73512ef5f8 Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
-rw-r--r--pom.xml12
1 files changed, 10 insertions, 2 deletions
diff --git a/pom.xml b/pom.xml
index a021437..3f4ede4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -50,6 +50,11 @@
<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>
@@ -110,8 +115,11 @@
<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>