X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=cps-parent%2Fpom.xml;h=a51d6943a3357b661057230fa04c373b963d2eec;hb=15fffd19b49827184096ae1444b8ca2ed86a5201;hp=8ff5ead8e5685da87e8110795ad2be48d44f66d4;hpb=ccea64d2ae8eed18d4626e5de5e3f79a989dd301;p=cps.git diff --git a/cps-parent/pom.xml b/cps-parent/pom.xml old mode 100644 new mode 100755 index 8ff5ead8e..a51d6943a --- a/cps-parent/pom.xml +++ b/cps-parent/pom.xml @@ -1,82 +1,50 @@ + + org.onap.oparent oparent - 3.1.0 + 3.2.0 4.0.0 org.onap.cps cps-parent - 0.0.1-SNAPSHOT + 2.1.0-SNAPSHOT pom org.onap.cps.Application - openjdk:11-jre-slim 11 - 2.6.0 - 3.1.0 - nexus3.onap.org:10001/onap/cps-service - 2.3.3.RELEASE - 3.0.18 - ${project.version} - + 0.97 - - - docker - - false - - - - - - com.google.cloud.tools - jib-maven-plugin - ${jib-maven-plugin.version} - - - ${app} - USE_CURRENT_TIMESTAMP - - - ${base.image} - - - ${repository.name} - - ${tag.version} - - - - - - package - build - - dockerBuild - - - - deploy - buildAndPush - - build - - - - - - - - - + ${project.reporting.outputDirectory}/jacoco-aggregate + + ../jacoco-report/target/site/jacoco-aggregate/jacoco.xml + + @@ -122,7 +90,7 @@ org.springframework.boot spring-boot-maven-plugin - ${spring-boot-maven-plugin.version} + 2.3.3.RELEASE @@ -132,33 +100,106 @@ + + org.apache.maven.plugins + maven-surefire-plugin + 3.0.0-M5 + io.swagger.codegen.v3 swagger-codegen-maven-plugin - ${swagger-codegen-maven-plugin.version} + 3.0.27 + openapi-yaml-gen generate + compile - ${project.basedir}/docs/api/swagger/openapi.yml - org.onap.cps.rest.controller - org.onap.cps.rest.model - org.onap.cps.rest.api - spring - false - - src/gen/java - java11 - true - true - + ${project.basedir}/docs/openapi/openapi.yml + openapi-yaml + + com.github.spotbugs + spotbugs-maven-plugin + 4.1.3 + + + com.github.spotbugs + spotbugs + 4.2.0 + + + ${project.groupId} + spotbugs + ${project.version} + + + + org.slf4j + slf4j-simple + 1.8.0-beta4 + + + + + + jp.skypencil.findbugs.slf4j + bug-pattern + 1.5.0 + + + + true + Max + + Low + + true + + spotbugs-exclude.xml + + true + + ${project.build.directory}/spotbugs + + + + + analyze-compile + compile + + check + + + + + + org.jsonschema2pojo + jsonschema2pojo-maven-plugin + 1.1.1 + + ${java.version} + + + + + generate + + + + @@ -174,6 +215,25 @@ org.apache.maven.plugins maven-checkstyle-plugin + + onap-license + + check + + process-sources + + onap-checkstyle/check-license.xml + false + true + false + + ${project.build.sourceDirectory} + + false + warning + true + + onap-java-style @@ -182,7 +242,9 @@ process-sources onap-checkstyle/onap-java-style.xml - ${project.build.sourceDirectory} + + ${project.build.sourceDirectory} + true true true @@ -191,12 +253,36 @@ true + + cps-java-style + + check + + process-sources + + cps-java-style.xml + + ${project.build.sourceDirectory} + + true + true + true + true + warning + true + + org.onap.oparent checkstyle - ${oparent.version} + 3.1.0 + + + ${project.groupId} + checkstyle + ${project.version} @@ -220,35 +306,77 @@ org.apache.maven.plugins maven-surefire-plugin - 3.0.0-M5 + + ${surefireArgLine} false **/*Spec.java **/*Test.java + + **/IT*.java + + + + true + ${docker.pull.registry}/ + - com.google.cloud.tools - jib-maven-plugin - ${jib-maven-plugin.version} + org.jacoco + jacoco-maven-plugin - - ${app} - USE_CURRENT_TIMESTAMP - - - ${base.image} - - - ${repository.name} - - ${tag.version} - - + + org/onap/cps/event/model/* + org/onap/cps/rest/model/* + org/onap/cps/cpspath/parser/antlr4/* + org/onap/cps/ncmp/rest/model/* + + + + default-prepare-agent + + prepare-agent + + + + coverage-check + + check + + + ${project.build.directory}/code-coverage/jacoco-ut.exec + + + BUNDLE + + + INSTRUCTION + COVEREDRATIO + ${minimum-coverage} + + + + + + + + + + com.github.spotbugs + spotbugs-maven-plugin + + + org.sonarsource.scanner.maven + sonar-maven-plugin - \ No newline at end of file +