summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorsu622b <su622b@att.com>2020-03-11 11:03:27 -0400
committersu622b <su622b@att.com>2020-03-11 11:03:42 -0400
commita5389cc3594ee259631163bdebd4bf86cef357aa (patch)
tree6667dfe87ab9477fce2a632f8a95ed7e603f5888 /pom.xml
parent4431ebfb911dcbd1dfec1a82c1646fb2402e31b2 (diff)
Sonar Cloud migration changes
Issue-ID: DMAAP-1407 Change-Id: I8da1faa13512b16c19862412e76712a30c522a16 Signed-off-by: su622b <su622b@att.com>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml38
1 files changed, 27 insertions, 11 deletions
diff --git a/pom.xml b/pom.xml
index 30cd824..b322d68 100644
--- a/pom.xml
+++ b/pom.xml
@@ -52,6 +52,28 @@
</resources>
<plugins>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>prepare-agent</id>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>report</id>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ <configuration>
+ <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
+ <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
@@ -64,17 +86,6 @@
</configuration>
</plugin>
<plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>cobertura-maven-plugin</artifactId>
- <version>2.7</version>
- <configuration>
- <formats>
- <format>html</format>
- <format>xml</format>
- </formats>
- </configuration>
- </plugin>
- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.6</version>
@@ -223,6 +234,11 @@
<nexusproxy>https://nexus.onap.org</nexusproxy>
<docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
<onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
+ <sonar.language>java</sonar.language>
+ <sonar.skip>false</sonar.skip>
+ <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
+ <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
+ <sonar.projectVersion>${project.version}</sonar.projectVersion>
</properties>
<!-- Distribution management -->