From: Pamela Dragosh Date: Fri, 16 Feb 2018 16:18:09 +0000 (-0500) Subject: Modify sonar settings to include all sub-modules X-Git-Tag: v1.2.0~140 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=policy%2Fengine.git;a=commitdiff_plain;h=eb6547de8d3cf4feaf5ed9801200fc9dbef3c7ba Modify sonar settings to include all sub-modules We are now including all the sub-modules coverage into one file. This will now reflect correct statistics for any sub-module that tests code located in another sub-module. Issue-ID: POLICY-634 Change-Id: I1eeb52c893aea96b3b031fabceb92e3b07f6c02c Signed-off-by: Pamela Dragosh --- diff --git a/pom.xml b/pom.xml index aa1e08fb9..33f9c4cee 100644 --- a/pom.xml +++ b/pom.xml @@ -37,18 +37,27 @@ The ONAP Policy Engine main pom - UTF-8 - - 9.2.3.v20140905 + 1.8 1.8 UTF-8 - + UTF-8 + https://nexus.onap.org /content/sites/site/${project.groupId}/${project.artifactId}/${project.version} content/repositories/releases/ content/repositories/snapshots/ content/repositories/staging/ + + + + ${project.basedir}/../target/code-coverage/jacoco-ut.exec + ${project.basedir}/../target/code-coverage/jacoco-it.exec + reuseReports + + + 9.2.3.v20140905 1.0.0 4.5.5 2.9.4 @@ -152,6 +161,32 @@ + + org.jacoco + jacoco-maven-plugin + + + pre-unit-test + + prepare-agent + + + ${sonar.jacoco.reportPath} + true + + + + post-unit-test + test + + report + + + ${sonar.jacoco.reportPath} + + + + org.sonatype.plugins nexus-staging-maven-plugin @@ -234,6 +269,46 @@ + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + **/gen/** + **/generated-sources/** + **/yang-gen/** + **/pax/** + + + + + + pre-unit-test + + prepare-agent + + + ${sonar.jacoco.reportPath} + + + + + post-unit-test + test + + report + + + ${sonar.jacoco.reportPath} + + + + org.eclipse.m2e lifecycle-mapping