aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwr148d <wr148d@att.com>2021-02-24 08:24:32 -0500
committerwr148d <wr148d@att.com>2021-02-24 08:24:32 -0500
commit1b2025915075ba258d6af716122b61b5e278939d (patch)
tree3d388c56f3039adee0d54dbc80e57ee74cd97082
parentbfb10c6309038d672fd41f5b40133aeedc9c02cf (diff)
Trying to get the sonar code coverage metric back for schema-service
Issue-ID: AAI-3276 Signed-off-by: wr148d <wr148d@att.com> Change-Id: Ie5bf6b23f5a107e8e85ee1b40e416b93a698928e
-rw-r--r--pom.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 6b65b5e..655d6a8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -65,11 +65,26 @@
<maven-compiler-plugin.test.source>8</maven-compiler-plugin.test.source>
<maven-compiler-plugin.test.target>8</maven-compiler-plugin.test.target>
<slf4j.version>1.7.26</slf4j.version>
+ <!-- Sonar Properties -->
+ <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}/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
+ <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
+ <sonar.projectVersion>${project.version}</sonar.projectVersion>
+ <sitePath>/content/sites/site/org/onap/aai/${project.artifactId}/${project.version}</sitePath>
+ <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
+ <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>sonar-maven-plugin</artifactId>
+ <version>${sonar.scanner.version}</version>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>${maven-site-plugin.version}</version>