From 34687b40708b969424b0f4489258a9476ec6a917 Mon Sep 17 00:00:00 2001 From: jimmy Date: Wed, 19 Feb 2020 15:20:36 -0500 Subject: [PATCH 1/1] Update SONAR config Issue-ID: AAI-2793 Signed-off-by: Jimmy Forsyth Change-Id: Ia1d4c7c97709b11933a47f9219bc6cfea7179064 --- pom.xml | 163 ++++++++++++++++++++++++++++++++++++++ sparkybe-onap-application/pom.xml | 22 ----- sparkybe-onap-service/pom.xml | 45 +---------- 3 files changed, 164 insertions(+), 66 deletions(-) diff --git a/pom.xml b/pom.xml index 449106f..b0d09b0 100644 --- a/pom.xml +++ b/pom.xml @@ -23,6 +23,20 @@ /content/sites/site/org/onap/aai/sparky-be/${project.artifactId}/${project.version} https://nexus.onap.org + + + + + + 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 + @@ -35,6 +49,155 @@ + + + + + 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} + + + + + diff --git a/sparkybe-onap-application/pom.xml b/sparkybe-onap-application/pom.xml index 22d74a4..bdb37a7 100644 --- a/sparkybe-onap-application/pom.xml +++ b/sparkybe-onap-application/pom.xml @@ -15,7 +15,6 @@ 1.8 - 0.7.9 org.onap.aai sparky-fe 1.5.0 @@ -580,27 +579,6 @@ - - org.jacoco - jacoco-maven-plugin - ${version.jacoco.maven.plugin} - - - prepare-agent - - prepare-agent - - - - report - package - - report - - - - - org.codehaus.mojo cobertura-maven-plugin diff --git a/sparkybe-onap-service/pom.xml b/sparkybe-onap-service/pom.xml index 3622e77..47cba7c 100644 --- a/sparkybe-onap-service/pom.xml +++ b/sparkybe-onap-service/pom.xml @@ -14,7 +14,6 @@ 1.8 - 0.7.9 org.onap.aai sparky-fe 1.3.0 @@ -28,7 +27,7 @@ /content/sites/site/org/onap/aai/sparky-be/${project.artifactId}/${project.version} https://neexus.onap.org 0.55 - 1.5.21.RELEASE + 1.5.22.RELEASE @@ -478,48 +477,6 @@ some of the depedencies should probably have a scope of provided so they don't a --> - - org.jacoco - jacoco-maven-plugin - ${version.jacoco.maven.plugin} - - - prepare-agent - - prepare-agent - - - - report - package - - report - - - - default-check - - check - - - ${project.build.directory}/jacoco.exec - - - - BUNDLE - - - LINE - COVEREDRATIO - ${jacoco.line.coverage.limit} - - - - - - - -