From 0096841f2533a04309939642856b7efdc415a07a Mon Sep 17 00:00:00 2001 From: jimmy Date: Wed, 19 Feb 2020 14:28:55 -0500 Subject: Update SONAR config Issue-ID: AAI-2793 Signed-off-by: Jimmy Forsyth Change-Id: Idf843a9e261bc8ef4ff165cf6a3322acb012a495 --- pom.xml | 206 +++++++++++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 160 insertions(+), 46 deletions(-) diff --git a/pom.xml b/pom.xml index 7500368..ef0b04e 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ org.onap.oparent oparent - 2.0.0 + 2.1.0 @@ -72,8 +72,20 @@ ${project.build.directory}/bundleconfig/etc/oxm/ 2.23 ${basedir}/target - - ${project.build.directory}/code-coverage + + + + + + 0.90 + 0.8.5 + 3.2 + jacoco + ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml + **/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/** + + 3.7.0.1746 + 0.80 @@ -345,21 +357,6 @@ - - org.apache.maven.plugins - maven-surefire-plugin - - - ${skip.unit.tests} - - - **/IT*.java - - - . - - - org.apache.maven.plugins @@ -431,34 +428,151 @@ true - - org.jacoco - jacoco-maven-plugin - - - default-check - - check - - - ${jacoco.report.directory}/jacoco-ut.exec - - - - BUNDLE - - - LINE - COVEREDRATIO - ${jacoco.line.coverage.limit} - - - - - - - - + + + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + **/gen/** + **/generated-sources/** + **/yang-gen/** + **/pax/** + org/onap/aai/babel/xml/generator/xsd/* + + + + + + pre-unit-test + + prepare-agent + + + + ${project.build.directory}/code-coverage/jacoco-ut.exec + + surefireArgLine + + + + + post-unit-test + test + + report + + + + ${project.build.directory}/code-coverage/jacoco-ut.exec + + ${project.reporting.outputDirectory}/jacoco-ut + + + + pre-integration-test + pre-integration-test + + prepare-agent + + + + ${project.build.directory}/code-coverage/jacoco-it.exec + + failsafeArgLine + + + + + post-integration-test + post-integration-test + + report + + + + ${project.build.directory}/code-coverage/jacoco-it.exec + + ${project.reporting.outputDirectory}/jacoco-it + + + + default-check + + check + + + ${project.build.directory}/code-coverage/jacoco-ut.exec + + + BUNDLE + + + LINE + COVEREDRATIO + ${jacoco.line.coverage.limit} + + + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 3.0.0-M4 + + + ${surefireArgLine} + + + **/IT*.java + + + + + org.apache.maven.plugins + maven-failsafe-plugin + 3.0.0-M4 + + + + integration-tests + + integration-test + verify + + + + ${failsafeArgLine} + + + + + + org.sonarsource.scanner.maven + sonar-maven-plugin + ${sonar.scanner.version} + + -- cgit 1.2.3-korg