aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2017-07-26 19:00:54 -0500
committerJorge Hernandez <jh1730@att.com>2017-07-26 19:00:54 -0500
commit1550fa87b367809d7c585991d26c7b29a8d46998 (patch)
tree794f9e4fa5d77112083d0f3dc77a00ffed3d091f
parent4d38fa9c091dac1247239411e731c520faeeec21 (diff)
[POLICY-109] set up parent pom for sonar
Change-Id: I89ba6326d5f1bedcd072772945f547cb339456e9 Signed-off-by: Jorge Hernandez <jh1730@att.com>
-rw-r--r--pom.xml24
1 files changed, 21 insertions, 3 deletions
diff --git a/pom.xml b/pom.xml
index f82745dd..91ebb245 100644
--- a/pom.xml
+++ b/pom.xml
@@ -45,13 +45,16 @@
<http.client.version>4.5</http.client.version>
<http.core.version>4.4.4</http.core.version>
<logback.version>1.2.3</logback.version>
+ <sonar.plugin.version>3.2</sonar.plugin.version>
+ <jacoco.plugin.version>0.7.9</jacoco.plugin.version>
<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>
- <sonar.jacoco.itReportPath>/opt/app/jacoco-it.exec</sonar.jacoco.itReportPath>
- <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
+ <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
+ <sonar.projectVersion>${project.version}</sonar.projectVersion>
+
<nexusproxy>https://nexus.onap.org</nexusproxy>
<sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
<releases.path>content/repositories/releases/</releases.path>
@@ -282,13 +285,23 @@
</dependency>
</dependencies>
</plugin>
+
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ </plugin>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>sonar-maven-plugin</artifactId>
+ </plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
- <version>0.7.5.201505241946</version>
+ <version>${jacoco.plugin.version}</version>
<configuration>
<dumpOnExit>true</dumpOnExit>
<includes>
@@ -307,6 +320,11 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>sonar-maven-plugin</artifactId>
+ <version>${sonar.plugin.version}</version>
+ </plugin>
</plugins>
</pluginManagement>
</build>