From ee1ef6fa9456900956558ad1985a4d2c66858c6e Mon Sep 17 00:00:00 2001 From: jimmy Date: Thu, 13 Feb 2020 14:42:18 -0500 Subject: [PATCH] Update sonar and surefire cfg Issue-ID: AAI-2793 Signed-off-by: Jimmy Forsyth Change-Id: I6b42b5712bfbae72776e021d3a4f18c0b8b2a69e --- aai-core/pom.xml | 110 ++++---------- aai-parent/pom.xml | 410 +++++++++++++++++++++++++++++++---------------------- 2 files changed, 268 insertions(+), 252 deletions(-) diff --git a/aai-core/pom.xml b/aai-core/pom.xml index 7ac32cf3..886c728b 100644 --- a/aai-core/pom.xml +++ b/aai-core/pom.xml @@ -1,23 +1,23 @@ - + 4.3.24.RELEASE - 4.5.5 - 2.2.3 - 1.0.1-oss - 1.2.3 - 2.3.21 + 0.50 3.2.2 - 2.4.15 - 9.4.11.v20180605 - + 2.4.15 + https://wiki.onap.org/ v15 @@ -61,8 +58,8 @@ v11 v12 v12 - v15 - v10,v11,v12,v13,v14,v15 + v19 + v10,v11,v12,v13,v14,v15,v16,v17,v18,v19 config @@ -81,8 +78,8 @@ v11 v12 v12 - v15 - v10,v11,v12,v13,v14,v15 + v19 + v10,v11,v12,v13,v14,v15,v16,v17,v18,v19 v15 @@ -93,9 +90,8 @@ org.apache.maven.plugins maven-surefire-plugin - 2.12.4 - -noverify ${argLine} + ${argLine} . bundleconfig-local @@ -108,56 +104,10 @@ 2.8 - org.sonarsource.scanner.maven - sonar-maven-plugin - - - org.jacoco - jacoco-maven-plugin - - true - - - - default-prepare-agent - - prepare-agent - - - - default-report - - report - - - - default-check - - check - - - ${project.build.directory}/coverage-reports/jacoco.xml - - - BUNDLE - - - LINE - COVEREDRATIO - ${jacoco.line.coverage.limit} - - - - - - - - - - - org.apache.maven.plugins - maven-deploy-plugin + + org.apache.maven.plugins + maven-deploy-plugin org.apache.maven.plugins diff --git a/aai-parent/pom.xml b/aai-parent/pom.xml index 13a39923..5969d7e1 100644 --- a/aai-parent/pom.xml +++ b/aai-parent/pom.xml @@ -2,21 +2,21 @@ @@ -38,7 +38,7 @@ - + ${project.version} 1.5.1 1.5.1 @@ -78,7 +78,7 @@ 2.1.11 0.0.24 5.0.4 - 1.5.0 + 1.5.0 1.9 2.4.0 20190722 @@ -97,14 +97,21 @@ 0.9.10 1.25 1.5.22.RELEASE + + + + + + + 0.00 0.8.5 3.2 jacoco ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml **/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/** - + 3.7.0.1746 - + 4.3.25.RELEASE 4.3.25.RELEASE 4.3.25.RELEASE @@ -147,17 +154,17 @@ - org.springframework.boot - spring-boot-starter-web - ${spring.boot.version} + org.springframework.boot + spring-boot-starter-web + ${spring.boot.version} - org.springframework.boot - spring-boot-starter-parent - ${spring.boot.version} - pom - import + org.springframework.boot + spring-boot-starter-parent + ${spring.boot.version} + pom + import @@ -176,9 +183,9 @@ - org.springframework - spring-test - ${spring.test.version} + org.springframework + spring-test + ${spring.test.version} @@ -344,20 +351,20 @@ - org.antlr - antlr4-runtime - ${antlr.version} + org.antlr + antlr4-runtime + ${antlr.version} - org.antlr - antlr4-maven-plugin - ${antlr.version} + org.antlr + antlr4-maven-plugin + ${antlr.version} - + - org.json - json - ${json.version} + org.json + json + ${json.version} @@ -421,9 +428,9 @@ - com.jayway.jsonpath - json-path - ${json.path.version} + com.jayway.jsonpath + json-path + ${json.path.version} @@ -438,7 +445,7 @@ ${gson.version} - + org.apache.commons commons-text @@ -456,13 +463,13 @@ jersey-core ${jersey.version} - + com.sun.jersey jersey-client ${jersey.version} - + com.sun.jersey jersey-json @@ -498,7 +505,7 @@ log4j ${log4j.version} - + log4j apache-log4j-extras @@ -519,9 +526,9 @@ - org.springframework - spring-jms - ${spring.jms.version} + org.springframework + spring-jms + ${spring.jms.version} @@ -585,53 +592,53 @@ - org.onap.aai.schema-service - aai-schema - ${aai.schema.service.version} + org.onap.aai.schema-service + aai-schema + ${aai.schema.service.version} - org.apache.httpcomponents - httpclient - ${httpclient.version} + org.apache.httpcomponents + httpclient + ${httpclient.version} - org.skyscreamer - jsonassert - ${jsonassert.version} - test + org.skyscreamer + jsonassert + ${jsonassert.version} + test - org.codehaus.plexus - plexus-utils - ${plexus.utils.version} + org.codehaus.plexus + plexus-utils + ${plexus.utils.version} - org.yaml - snakeyaml - ${snakeyaml.version} + org.yaml + snakeyaml + ${snakeyaml.version} - - org.apache.commons - commons-compress - ${commons.compress.version} - + + org.apache.commons + commons-compress + ${commons.compress.version} + - - org.reflections - reflections - ${reflections.version} - + + org.reflections + reflections + ${reflections.version} + - - commons-net - commons-net - ${commons.net.version} - + + commons-net + commons-net + ${commons.net.version} + @@ -650,105 +657,164 @@ docker-maven-plugin ${docker.fabric.version} - + - org.sonarsource.scanner.maven - sonar-maven-plugin - ${sonar.scanner.version} + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + **/gen/** + **/generated-sources/** + **/yang-gen/** + **/pax/** + + + + + + 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.jacoco - jacoco-maven-plugin - ${jacoco.version} - - - - **/gen/** - **/generated-sources/** - **/yang-gen/** - **/pax/** - - - - - - 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 - - - - + 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} + + - + + + org.jacoco + jacoco-maven-plugin + + + org.apache.maven.plugins + maven-surefire-plugin + + + org.apache.maven.plugins + maven-failsafe-plugin + + + + -- 2.16.6