From 9eeb8e9641163e1c7fc9bba85fedaa965a5d7e2f Mon Sep 17 00:00:00 2001 From: sourabh_sourabh Date: Thu, 24 Oct 2024 14:24:54 +0100 Subject: Removing ONAP O-Parent as parent from CPS - Fixed checkstyle and license validation. - Updated checkstyle configuration (`onap-java-style.xml` and `check-license.xml`) to ensure compatibility with Maven Checkstyle Plugin version 3.3.1 - Removed obsolete properties causing build failures. - Improved code style rules to meet ONAP Java guidelines. - Vulnerabilities scan are now configured on parent pom.xml - Fixed all code style. Issue-ID: CPS-2470 Change-Id: I1e72af604415aa7587cbe1dff471ed0323e29aa3 Signed-off-by: sourabh_sourabh --- cps-parent/pom.xml | 210 +++++++++++++++++++++++++++++++++-------------------- 1 file changed, 130 insertions(+), 80 deletions(-) (limited to 'cps-parent') diff --git a/cps-parent/pom.xml b/cps-parent/pom.xml index a83278d6cd..6776008acf 100644 --- a/cps-parent/pom.xml +++ b/cps-parent/pom.xml @@ -22,33 +22,76 @@ - - org.onap.oparent - oparent - 3.2.0 - - - 4.0.0 + + 4.0.0 org.onap.cps cps-parent 3.5.5-SNAPSHOT pom + + UTF-8 + + org.onap.cps.Application + + + ${project.basedir}/.. + + + 1.5.0 + 9.2.0 + 9.0.0 + 4.0.1 + 0.8.11 17 - 1.00 + 1.2.1 + 3.3.1 + 3.13.0 + 17 + 4.0.0-M13 + 3.2.5 42.5.1 + 2.0.6 + 4.0.0.4121 + 4.8.6.4 + 4.8.6 + 3.2.4 + 1.2.1 + + ${project.build.directory}/code-coverage/jacoco-ut.exec + ${project.reporting.outputDirectory}/jacoco-ut ${project.reporting.outputDirectory}/jacoco-aggregate + 1.00 ../jacoco-report/target/site/jacoco-aggregate/jacoco.xml - ${project.basedir}/.. - 17 + + + + + + org.onap.cps + cps-dependencies + ${project.version} + pom + import + + + org.onap.cps + cps-bom + ${project.version} + pom + import + + + + Windows @@ -72,27 +115,27 @@ python3 + + dependency-vulnerability-check + + + + org.owasp + dependency-check-maven + ${dependency.check.version} + + + + aggregate + + + + + + + - - - - org.onap.cps - cps-dependencies - ${project.version} - pom - import - - - org.onap.cps - cps-bom - ${project.version} - pom - import - - - - @@ -118,7 +161,7 @@ org.springframework.boot spring-boot-maven-plugin - 3.2.4 + ${spring.boot.maven.plugin.version} @@ -130,7 +173,7 @@ io.github.git-commit-id git-commit-id-maven-plugin - 9.0.0 + ${git.commit.id.version} get-git-info @@ -141,11 +184,6 @@ - - org.apache.maven.plugins - maven-surefire-plugin - 3.0.0-M5 - io.swagger.codegen.v3 @@ -167,12 +205,12 @@ com.github.spotbugs spotbugs-maven-plugin - 4.8.6.4 + ${spotbugs.plugin.version} com.github.spotbugs spotbugs - 4.8.6 + ${spotbugs.version} ${project.groupId} @@ -183,7 +221,7 @@ org.slf4j slf4j-simple - 2.0.6 + ${slf4j.simple.version} @@ -191,7 +229,7 @@ jp.skypencil.findbugs.slf4j bug-pattern - 1.5.0 + ${bug.pattern.version} org.codehaus.gmavenplus gmavenplus-plugin - 1.9.0 + ${gmavenplus.plugin.version} @@ -343,6 +361,7 @@ org.apache.maven.plugins maven-surefire-plugin + ${maven.surefire.plugin.version} ${surefireArgLine} @@ -371,17 +390,18 @@ org.jacoco jacoco-maven-plugin - 0.8.10 + ${jacoco.version} - + - org/onap/cps/event/model/* + org/onap/cps/events/model/* org/onap/cps/rest/model/* org/onap/cps/cpspath/parser/antlr4/* org/onap/cps/ncmp/rest/model/* org/onap/cps/**/*MapperImpl.class org/onap/cps/ncmp/rest/stub/* org/onap/cps/policyexecutor/stub/model/* + **/pom.xml @@ -390,14 +410,19 @@ prepare-agent + + ${jacoco.execFile} + surefireArgLine + coverage-check + test check - ${project.build.directory}/code-coverage/jacoco-ut.exec + ${jacoco.execFile} BUNDLE @@ -412,17 +437,42 @@ + + post-unit-test + test + + report + + + + ${jacoco.execFile} + + ${jacoco.outputDirectory} + + - - com.github.spotbugs - spotbugs-maven-plugin - + + org.sonarsource.scanner.maven sonar-maven-plugin - 3.9.1.2184 + ${sonar.version} + + + + + org.apache.maven.plugins + maven-site-plugin + ${maven.site.plugin.version} + + + default-site + site + site + + - + \ No newline at end of file -- cgit 1.2.3-korg