From 8bf33437774bd7120bb68a22d0106adcc3a1718d Mon Sep 17 00:00:00 2001 From: "Determe, Sebastien (sd378r)" Date: Tue, 8 Aug 2017 02:49:33 -0700 Subject: Rework Pom and Dockerfile Rework the pom & swagger config + Remove license plugin in pom and license files + Rework the dockerfile (support all clamp versions now) + Introduce the version.properties Change-Id: Ia823e00309d651ca40ef12beeae02fb01d8a80a9 Issue-Id: CLAMP-1 Signed-off-by: Determe, Sebastien (sd378r) --- pom.xml | 486 +++++++++++++++++++++++++--------------------------------------- 1 file changed, 186 insertions(+), 300 deletions(-) (limited to 'pom.xml') diff --git a/pom.xml b/pom.xml index b853ccf3..e76cbf38 100644 --- a/pom.xml +++ b/pom.xml @@ -4,35 +4,39 @@ 4.0.0 org.onap.clamp clds - 1.0.0-SNAPSHOT + 1.0.1-SNAPSHOT ONAP CLAMP - - org.onap.oparent - oparent - 1.0.0-SNAPSHOT - - + + This project build the ONAP CLAMP JAR that contains AJSC + CLAMP code. + + By Default "mvn clean install" command will execute also the unit tests + and the integration tests. The integration tests require a docker engine running. + + If you want to skip the intergation test you can by doing: + "mvn clean install -DskipITs=true" + + For Spring it's possible to specify the application.properties location + "mvn clean install -Dspring.config.location=classpath:application-test.properties" + + The application.properties contains the location of the CLAMP parameters files: + clds-policy-config.properties and clds-reference.properties + + 1.8 1.8 UTF-8 - 3306 + UTF-8 + + 3306 0.0.3-oss git-server - ${basedir}/target/classes/META-INF/resources/icd - service.json - org.onap.clamp.clds.service.rs 1.8 - local - ajsc-svc-account - com.att.ajsc - 2.2.11 6.1.0.6-oss 6.2.0.6-oss 6.1.0.3-oss - UTF-8 - UTF-8 + java jacoco ${project.build.directory}/surefire-reports @@ -77,16 +81,6 @@ Maven 2 repository 2 http://repo2.maven.org/maven2/ - - JBOSS - JBoss Repository - http://repository.jboss.org/nexus/content/groups/public-jboss/ - - - jboss-deprecated-repository - JBoss Deprecated Maven Repository - https://repository.jboss.org/nexus/content/repositories/deprecated/ - ecomp-releases ONAP Release Repository @@ -101,8 +95,12 @@ ecomp-snapshots ONAP Snapshot Repository ${nexusproxy}/${snapshotNexusPath} - true - false + + true + + + false + spring-repo @@ -110,31 +108,12 @@ https://artifacts.alfresco.com/nexus/content/repositories/public/ - soapUI - http://www.soapui.org/repository/maven2/ - SoapUI plugin + repository.jboss.org-public + JBoss.org Maven repository + https://repository.jboss.org/nexus/content/groups/public - - This project build the ONAP CLAMP JAR that contains AJSC + CLAMP code. - - By Default "mvn clean install" command will execute also the unit tests - and the integration tests. The integration tests require a docker engine running. - - If you want to skip the intergation test you can by doing: - "mvn clean install -DskipITs=true" - - For Spring it's possible to specify the application.properties location - "mvn clean install -Dspring.config.location=classpath:application-test.properties" - - The application.properties contains the location of the CLAMP parameters files: - clds-policy-config.properties and clds-reference.properties - - The licenses and headers can be generated by using this maven command: - mvn license:update-file-header license:update-project-license - - @@ -149,11 +128,26 @@ - - org.apache.commons - commons-vfs2 - 2.0 - + + + com.googlecode.json-simple + json-simple + 1.1 + + + org.apache.commons + commons-vfs2 + 2.0 + + + + org.springframework.security + spring-security-test + + test + + + com.att.ajsc @@ -170,9 +164,9 @@ spring-boot-starter-actuator - org.springframework.boot - spring-boot-starter-security - + org.springframework.boot + spring-boot-starter-security + org.springframework.boot spring-boot-starter-test @@ -332,6 +326,10 @@ apache-log4j-extras log4j + + jackson-databind + com.fasterxml.jackson.core + @@ -354,29 +352,33 @@ - org.onap.policy.engine - ControlloopPolicy - 1.1.0-SNAPSHOT - - - log4j - log4j - - - org.slf4j - slf4j-log4j12 - - - apache-log4j-extras - log4j - - - + org.onap.policy.engine + ControlloopPolicy + 1.1.0-SNAPSHOT + + + log4j + log4j + + + org.slf4j + slf4j-log4j12 + + + apache-log4j-extras + log4j + + + + + com.fasterxml.jackson.core + jackson-databind + 2.6.3 + com.fasterxml.jackson.dataformat jackson-dataformat-yaml - 2.6.3 @@ -403,41 +405,22 @@ + clamp + - - src/test/resources - - **/* - - true - + + src/test/resources + + **/* + + true + src/main/resources true - - target/generated-sources/license - - third-party-licenses.txt - - - - target/generated-resources/licenses - - *.* - - third-party-licenses - - - ${project.basedir}/etc - ${project.build.directory}/etc - true - - **/* - - src/main/docker @@ -453,116 +436,80 @@ true - - - - - org.apache.maven.plugins - maven-release-plugin - 2.5.3 - - ${projectTag} - ${scm.commit.message} - - - - com.github.kongchen - swagger-maven-plugin - 3.1.3 - - - - ${icd.package} - / - - ${project.artifactId} Service - ${project.version} - - ${swagger.directory} - - - - - - compile - - generate - - - - - - org.eclipse.m2e - lifecycle-mapping - 1.0.0 - - - - - - com.github.kongchen - swagger-maven-plugin - 3.1.3 - - generate - - - - - - - - - - - - + + + - - org.apache.maven.plugins - maven-jar-plugin - 3.0.2 - - - jar-with-only-classes - package - - jar - - - classes - - META-INF/resources/designer/** - META-INF/resources/icd/** - META-INF/resources/index.html - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.0.0 - - - - attach-artifact - - package - - - - ${project.build.directory}/clds-${project.version}-classes.jar - jar - classes - - - - - - + + org.apache.maven.plugins + maven-jar-plugin + 3.0.2 + + + jar-with-only-classes + package + + jar + + + classes + + org/** + + + + + + + com.github.kongchen + swagger-maven-plugin + 3.1.5 + + + compile + + generate + + + + + + org.onap.clamp.clds.service + + / + + ${project.artifactId} Service + ${project.version} + + ${project.build.directory}/classes/META-INF/resources/icd + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.0.0 + + + + attach-artifact + + package + + + + ${project.build.directory}/clamp-classes.jar + jar + classes + + + + + + org.springframework.boot @@ -577,16 +524,6 @@ - - maven-release-plugin - - - org.apache.maven.scm - maven-scm-provider-gitexe - 1.9 - - - org.apache.maven.plugins maven-gpg-plugin @@ -616,37 +553,12 @@ ${skip.staging.artifacts} - - com.github.kongchen - swagger-maven-plugin - - - - org.onap.clamp.clds.service.rs - //rest - - ${project.artifactId} Service - ${project.version} - - ${swagger.directory} - - - - - - compile - - generate - - - - com.spotify docker-maven-plugin 0.4.11 - ${docker.push.registry}/onap/clamp + onap/clamp src/main/docker docker-hub @@ -665,6 +577,11 @@ ${project.build.directory} etc/config/** + + / + ${project.build.directory} + etc/keystore/** + @@ -682,19 +599,6 @@ - - tag-image - package - - tag - - - onap/clamp - ${docker.push.registry}/onap/clamp - true - ${skip.docker.tag} - - push-image deploy @@ -702,6 +606,7 @@ push + onap/clamp ${skip.docker.push} @@ -826,45 +731,26 @@ + + + merge + + post-integration-test + + + + ${project.build.directory}/coverage-reports + + *.exec + + + + ${project.build.directory}/jacoco-dev.exec + + - - - org.codehaus.mojo - license-maven-plugin - 1.12 - - false - ONAP CLAMP - true - true - true - - ============LICENSE_START======================================================= - - ================================================================================ - AT&T Intellectual Property. All rights - reserved. - 2017 - true - - clamp_apache_v2 - ${project.baseUri}/src/licenses - - - **/*.properties - **/icd/** - **/designer/lib/** - **/*.json - **/*.yaml - **/*.yml - **/licenses/** - - - - - org.codehaus.mojo -- cgit 1.2.3-korg