summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorVenkata Harish K Kajur <vk250x@att.com>2017-02-28 20:50:04 +0000
committerVenkata Harish K Kajur <vk250x@att.com>2017-02-28 20:50:30 +0000
commitbe45d5c85393c85e9ab345993125a27bfd5c0e5c (patch)
tree6300344074c7530e3504000e3c2eaf7ffdac17c6 /pom.xml
parent61293a3007c4a582a4ebfbf33c5d5c9278f0ef8e (diff)
Update pom for sonar
Change-Id: I3cc4b5f394dade885ce7b606279ac90e5d55310a Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml34
1 files changed, 32 insertions, 2 deletions
diff --git a/pom.xml b/pom.xml
index 72018ea..d217ba8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -32,6 +32,12 @@
<checkstyle.config.location>google_checks.xml</checkstyle.config.location>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
+ <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.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
+ <sonar.projectVersion>${project.version}</sonar.projectVersion>
</properties>
<dependencies>
@@ -240,8 +246,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12.4</version>
<configuration>
- <argLine>-javaagent:${project.build.directory}/agents/powermock-javaagent.jar
- -noverify</argLine>
+ <argLine>-noverify ${argLine}</argLine>
</configuration>
</plugin>
<plugin>
@@ -347,6 +352,31 @@
<skip>true</skip>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>sonar-maven-plugin</artifactId>
+ <version>3.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>0.7.7.201606060606</version>
+ <configuration>
+ <dumpOnExit>true</dumpOnExit>
+ </configuration>
+ <executions>
+ <execution>
+ <id>jacoco-initialize-unit-tests</id>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ <configuration>
+ <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
+ <!-- <append>true</append> -->
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>