diff options
author | Thomas Nelson Jr (arthurdent3) <tn1381@att.com> | 2018-02-11 17:17:53 -0500 |
---|---|---|
committer | Thomas Nelson Jr (arthurdent3) <tn1381@att.com> | 2018-02-11 17:17:53 -0500 |
commit | 83cd45492799f43ab35fa03113f76cf417734036 (patch) | |
tree | f935aa6483266c9b3ec3e5f4de6bdcde34a19a18 | |
parent | 4608f1d5d92c34cb88bd5ea29d652a8b2fe6fc2d (diff) |
Sonar Changes to pom file
Trying to get Sonar working right. Code coverage is not showing up.
Assuming its somethign missing from pom.
Change-Id: I8a695ce6639666b79a2d92e4d5cb92307515a858
Issue-ID: MUSIC-24
Signed-off-by: Thomas Nelson Jr (arthurdent3) <tn1381@att.com>
-rw-r--r-- | .gitreview | 2 | ||||
-rwxr-xr-x | pom.xml | 39 |
2 files changed, 39 insertions, 2 deletions
@@ -1,4 +1,4 @@ [gerrit] -host=gerrit.acumos.org +host=gerrit.onap.org port=29418 project=music.git @@ -38,11 +38,20 @@ <zookeeper.version>3.4.6</zookeeper.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> + <!-- ONAP Nexus --> <nexusproxy>https://nexus.onap.org</nexusproxy> <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath> <releaseNexusPath>/content/repositories/releases/</releaseNexusPath> <stagingNexusPath>/content/repositories/staging/</stagingNexusPath> <sitePath>/content/sites/site/org/openecomp/music/${project.version}</sitePath> + <!-- SONAR --> + <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>true</sonar.jacoco.reportMissing.force.zero> + <sonar.projectVersion>${project.version}</sonar.projectVersion> + </properties> <repositories> <repository> @@ -194,7 +203,35 @@ <artifactId>sonar-maven-plugin</artifactId> <version>3.2</version> </plugin> - </plugins> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>0.7.7.201606060606</version> + <configuration> + <dumpOnExit>true</dumpOnExit> + <includes> + <include>org.openecomp.*</include> + </includes> + </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> + <!-- Maven surefire plugin for testing --> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.17</version> + </plugin> + </plugins> </build> <dependencies> |