From 372e251380abf42627b72d939aba5e5e310bd31f Mon Sep 17 00:00:00 2001 From: Sai Gandham Date: Sun, 1 Apr 2018 16:42:58 -0500 Subject: [PATCH] Modify pom files & fix AAF sonar issues Modified Misc Pom files and testing SONAR Issue-ID: AAF-199 Change-Id: Ifea9566009936648314c08d52a2cc638c99c9e07 Signed-off-by: Sai Gandham --- auth/auth-batch/pom.xml | 2 +- auth/auth-cass/pom.xml | 2 +- auth/auth-cmd/pom.xml | 3 -- auth/auth-core/pom.xml | 3 -- auth/auth-deforg/pom.xml | 3 -- auth/auth-fs/pom.xml | 3 -- auth/pom.xml | 5 +-- cadi/pom.xml | 5 --- misc/env/pom.xml | 103 +++++++++++++++++++++++++++----------------- misc/log4j/pom.xml | 103 +++++++++++++++++++++++++++----------------- misc/pom.xml | 109 ++++++++++++++++++++++++++++------------------- misc/rosetta/pom.xml | 103 +++++++++++++++++++++++++++----------------- misc/xgen/pom.xml | 104 +++++++++++++++++++++++++++----------------- pom.xml | 74 ++------------------------------ 14 files changed, 324 insertions(+), 298 deletions(-) diff --git a/auth/auth-batch/pom.xml b/auth/auth-batch/pom.xml index 2813a559..8969de0e 100644 --- a/auth/auth-batch/pom.xml +++ b/auth/auth-batch/pom.xml @@ -71,7 +71,7 @@ - true + false diff --git a/auth/auth-cass/pom.xml b/auth/auth-cass/pom.xml index 429a1220..41540887 100644 --- a/auth/auth-cass/pom.xml +++ b/auth/auth-cass/pom.xml @@ -71,7 +71,7 @@ - true + diff --git a/auth/auth-cmd/pom.xml b/auth/auth-cmd/pom.xml index c67e8490..87ff3630 100644 --- a/auth/auth-cmd/pom.xml +++ b/auth/auth-cmd/pom.xml @@ -36,9 +36,6 @@ jar - true - - false 0.7.7.201606060606 diff --git a/auth/auth-core/pom.xml b/auth/auth-core/pom.xml index f1948747..65f333b7 100644 --- a/auth/auth-core/pom.xml +++ b/auth/auth-core/pom.xml @@ -72,9 +72,6 @@ - true - - 0.7.7.201606060606 3.2 diff --git a/auth/auth-deforg/pom.xml b/auth/auth-deforg/pom.xml index 2e02120d..ed9c5914 100644 --- a/auth/auth-deforg/pom.xml +++ b/auth/auth-deforg/pom.xml @@ -72,9 +72,6 @@ - true - - false 0.7.7.201606060606 diff --git a/auth/auth-fs/pom.xml b/auth/auth-fs/pom.xml index 31f2c33f..c1af6e44 100644 --- a/auth/auth-fs/pom.xml +++ b/auth/auth-fs/pom.xml @@ -34,9 +34,6 @@ Independent FileServer Component via HTTP (not S) for Public Files (i.e. CRLs) for AAF Auth - true - - true 0.7.7.201606060606 diff --git a/auth/pom.xml b/auth/pom.xml index 90892914..7142554b 100644 --- a/auth/pom.xml +++ b/auth/pom.xml @@ -30,7 +30,6 @@ pom UTF-8 - true 2.10-SNAPSHOT 1.3.0-SNAPSHOT 1.5.0-SNAPSHOT @@ -116,7 +115,7 @@ maven-surefire-plugin 2.17 - true + false **/JU*.java @@ -132,7 +131,7 @@ maven-failsafe-plugin 2.17 - true + flase diff --git a/cadi/pom.xml b/cadi/pom.xml index 56cf3990..361c375f 100644 --- a/cadi/pom.xml +++ b/cadi/pom.xml @@ -31,11 +31,6 @@ pom - - org.onap.oparent - oparent - 1.1.0 - diff --git a/misc/env/pom.xml b/misc/env/pom.xml index c4790d4b..0a8309da 100644 --- a/misc/env/pom.xml +++ b/misc/env/pom.xml @@ -70,15 +70,13 @@ - - 0.7.7.201606060606 - 3.2 - jacoco - - target/code-coverage/jacoco-ut.exec - target/code-coverage/jacoco-it.exec - - **/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/** + 0.7.6.201602180812 + UTF-8 + UTF-8 + **/scripts/**/*,**.js + **/test/**/*,**/tests/**/* + true + https://nexus.onap.org /content/repositories/snapshots/ /content/repositories/releases/ @@ -99,57 +97,82 @@ ecomp-staging + + org.sonarsource.scanner.maven + sonar-maven-plugin + 3.2 + + org.jacoco jacoco-maven-plugin - 0.7.7.201606060606 - - true - - org.onap.aaf.* - - + + ${jacocoVersion} + pre-unit-test + none + + + post-unit-test + none + + + pre-integration-test + none + + + post-integration-test + none + + + + portal-prepare-agent prepare-agent - ${project.build.directory}/coverage-reports/jacoco.exec - + ${sonar.jacoco.reportPath} + - pre-integration-test - pre-integration-test + portal-offline-instrument - prepare-agent + instrument + + + + portal-restore-instrumented-classes + test + + restore-instrumented-classes + + + + portal-post-unit-test + test + + report - ${project.build.directory}/coverage-reports/jacoco-it.exec - + ${sonar.jacoco.reportPath} + ${project.basedir}/target/site/jacoco - - - merge - - post-integration-test - - - - ${project.build.directory}/coverage-reports - - *.exec - - - - ${project.build.directory}/jacoco-dev.exec - - + + + org.apache.maven.plugins + maven-surefire-plugin + + + ${project.build.directory}/code-coverage/jacoco-ut.exec + + + diff --git a/misc/log4j/pom.xml b/misc/log4j/pom.xml index f8e60bdd..d6c4a7e5 100644 --- a/misc/log4j/pom.xml +++ b/misc/log4j/pom.xml @@ -70,15 +70,13 @@ - - 0.7.7.201606060606 - 3.2 - jacoco - - target/code-coverage/jacoco-ut.exec - target/code-coverage/jacoco-it.exec - - **/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/** + 0.7.6.201602180812 + UTF-8 + UTF-8 + **/scripts/**/*,**.js + **/test/**/*,**/tests/**/* + true + https://nexus.onap.org /content/repositories/snapshots/ /content/repositories/releases/ @@ -123,57 +121,82 @@ ecomp-staging + + org.sonarsource.scanner.maven + sonar-maven-plugin + 3.2 + + org.jacoco jacoco-maven-plugin - 0.7.7.201606060606 - - true - - org.onap.aaf.* - - + + ${jacocoVersion} + pre-unit-test + none + + + post-unit-test + none + + + pre-integration-test + none + + + post-integration-test + none + + + + portal-prepare-agent prepare-agent - ${project.build.directory}/coverage-reports/jacoco.exec - + ${sonar.jacoco.reportPath} + - pre-integration-test - pre-integration-test + portal-offline-instrument - prepare-agent + instrument + + + + portal-restore-instrumented-classes + test + + restore-instrumented-classes + + + + portal-post-unit-test + test + + report - ${project.build.directory}/coverage-reports/jacoco-it.exec - + ${sonar.jacoco.reportPath} + ${project.basedir}/target/site/jacoco - - - merge - - post-integration-test - - - - ${project.build.directory}/coverage-reports - - *.exec - - - - ${project.build.directory}/jacoco-dev.exec - - + + + org.apache.maven.plugins + maven-surefire-plugin + + + ${project.build.directory}/code-coverage/jacoco-ut.exec + + + diff --git a/misc/pom.xml b/misc/pom.xml index c1a4a6d2..ff5b49e7 100644 --- a/misc/pom.xml +++ b/misc/pom.xml @@ -28,24 +28,18 @@ 1.3.0-SNAPSHOT pom - - org.onap.oparent - oparent - 1.1.0 - + + 0.7.6.201602180812 + UTF-8 + UTF-8 + **/scripts/**/*,**.js + **/test/**/*,**/tests/**/* + true + UTF-8 1.5.1 - - 0.7.7.201606060606 - 3.2 - jacoco - - target/code-coverage/jacoco-ut.exec - target/code-coverage/jacoco-it.exec - - **/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/** https://nexus.onap.org /content/repositories/snapshots/ /content/repositories/releases/ @@ -153,57 +147,82 @@ ecomp-staging + + org.sonarsource.scanner.maven + sonar-maven-plugin + 3.2 + + org.jacoco jacoco-maven-plugin - 0.7.7.201606060606 - - true - - org.onap.aaf.* - - + + ${jacocoVersion} + pre-unit-test + none + + + post-unit-test + none + + + pre-integration-test + none + + + post-integration-test + none + + + + portal-prepare-agent prepare-agent - ${project.build.directory}/coverage-reports/jacoco.exec - + ${sonar.jacoco.reportPath} + - pre-integration-test - pre-integration-test + portal-offline-instrument - prepare-agent + instrument + + + + portal-restore-instrumented-classes + test + + restore-instrumented-classes + + + + portal-post-unit-test + test + + report - ${project.build.directory}/coverage-reports/jacoco-it.exec - + ${sonar.jacoco.reportPath} + ${project.basedir}/target/site/jacoco - - - merge - - post-integration-test - - - - ${project.build.directory}/coverage-reports - - *.exec - - - - ${project.build.directory}/jacoco-dev.exec - - + + + org.apache.maven.plugins + maven-surefire-plugin + + + ${project.build.directory}/code-coverage/jacoco-ut.exec + + + diff --git a/misc/rosetta/pom.xml b/misc/rosetta/pom.xml index d9a77ee3..8178a75b 100644 --- a/misc/rosetta/pom.xml +++ b/misc/rosetta/pom.xml @@ -70,15 +70,13 @@ - - 0.7.7.201606060606 - 3.2 - jacoco - - target/code-coverage/jacoco-ut.exec - target/code-coverage/jacoco-it.exec - - **/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/** + 0.7.6.201602180812 + UTF-8 + UTF-8 + **/scripts/**/*,**.js + **/test/**/*,**/tests/**/* + true + https://nexus.onap.org /content/repositories/snapshots/ /content/repositories/releases/ @@ -123,56 +121,81 @@ + org.sonarsource.scanner.maven + sonar-maven-plugin + 3.2 + + + org.jacoco jacoco-maven-plugin - 0.7.7.201606060606 - - true - - org.onap.aaf.* - - + + ${jacocoVersion} + pre-unit-test + none + + + post-unit-test + none + + + pre-integration-test + none + + + post-integration-test + none + + + + portal-prepare-agent prepare-agent - ${project.build.directory}/coverage-reports/jacoco.exec - + ${sonar.jacoco.reportPath} + - pre-integration-test - pre-integration-test + portal-offline-instrument - prepare-agent + instrument + + + + portal-restore-instrumented-classes + test + + restore-instrumented-classes + + + + portal-post-unit-test + test + + report - ${project.build.directory}/coverage-reports/jacoco-it.exec - + ${sonar.jacoco.reportPath} + ${project.basedir}/target/site/jacoco - - - merge - - post-integration-test - - - - ${project.build.directory}/coverage-reports - - *.exec - - - - ${project.build.directory}/jacoco-dev.exec - - + + + org.apache.maven.plugins + maven-surefire-plugin + + + ${project.build.directory}/code-coverage/jacoco-ut.exec + + + diff --git a/misc/xgen/pom.xml b/misc/xgen/pom.xml index 439b0f76..a3bceb10 100644 --- a/misc/xgen/pom.xml +++ b/misc/xgen/pom.xml @@ -70,15 +70,13 @@ - - 0.7.7.201606060606 - 3.2 - jacoco - - target/code-coverage/jacoco-ut.exec - target/code-coverage/jacoco-it.exec - - **/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/** + 0.7.6.201602180812 + UTF-8 + UTF-8 + **/scripts/**/*,**.js + **/test/**/*,**/tests/**/* + true + https://nexus.onap.org /content/repositories/snapshots/ /content/repositories/releases/ @@ -107,57 +105,83 @@ ecomp-staging + + org.sonarsource.scanner.maven + sonar-maven-plugin + 3.2 + + + org.jacoco jacoco-maven-plugin - 0.7.7.201606060606 - - true - - org.onap.aaf.* - - + + ${jacocoVersion} + pre-unit-test + none + + + post-unit-test + none + + + pre-integration-test + none + + + post-integration-test + none + + + + portal-prepare-agent prepare-agent - ${project.build.directory}/coverage-reports/jacoco.exec - + ${sonar.jacoco.reportPath} + - pre-integration-test - pre-integration-test + portal-offline-instrument - prepare-agent + instrument + + + + portal-restore-instrumented-classes + test + + restore-instrumented-classes + + + + portal-post-unit-test + test + + report - ${project.build.directory}/coverage-reports/jacoco-it.exec - + ${sonar.jacoco.reportPath} + ${project.basedir}/target/site/jacoco - - - merge - - post-integration-test - - - - ${project.build.directory}/coverage-reports - - *.exec - - - - ${project.build.directory}/jacoco-dev.exec - - + + + org.apache.maven.plugins + maven-surefire-plugin + + + ${project.build.directory}/code-coverage/jacoco-ut.exec + + + diff --git a/pom.xml b/pom.xml index ea71ceeb..d54be3c4 100644 --- a/pom.xml +++ b/pom.xml @@ -34,15 +34,6 @@ - - 0.7.7.201606060606 - 3.2 - jacoco - - target/code-coverage/jacoco-ut.exec - target/code-coverage/jacoco-it.exec - - **/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/** https://nexus.onap.org /content/repositories/snapshots/ /content/repositories/releases/ @@ -70,68 +61,9 @@ - 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.sonarsource.scanner.maven + sonar-maven-plugin + 3.2 -- 2.16.6