From fe9c74b9933745144bfd8134bc96fd77fa3291f8 Mon Sep 17 00:00:00 2001 From: Lusheng Ji Date: Tue, 12 Sep 2017 02:16:34 +0000 Subject: Add mvn script for docker build Issue-Id: DCAEGEN2-60 Change-Id: Ic05eeb71ee94e29fcb2c0f2ca5a0ca4d36d9ca94 Signed-off-by: Lusheng Ji --- pom.xml | 251 +++++++++++++++++++++++++++------------------------------------- 1 file changed, 106 insertions(+), 145 deletions(-) (limited to 'pom.xml') diff --git a/pom.xml b/pom.xml index 5f875dd..e15e311 100644 --- a/pom.xml +++ b/pom.xml @@ -31,10 +31,11 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property. policy-handler dcaegen2-platform-policy-handler - 1.0.0-SNAPSHOT + 1.0.0 http://maven.apache.org UTF-8 + true . @@ -50,14 +51,11 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property. **/*.js --> - ${project.artifactId}-${project.version} - - org.sonatype.plugins nexus-staging-maven-plugin @@ -75,68 +73,88 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property. true - + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0-M1 + + true + + - - - org.apache.maven.plugins - maven-resources-plugin - 2.6 - - true - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - true - - - - - - org.apache.maven.plugins - maven-jar-plugin - 2.4 - - - default-jar - - - - - - + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + true + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.4 + + + default-jar + + + + + - - org.apache.maven.plugins - maven-install-plugin - 2.4 - - true - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.12.4 - - true - - - - + + org.apache.maven.plugins + maven-surefire-plugin + 2.12.4 + + true + + + + org.codehaus.mojo + exec-maven-plugin + 1.2.1 + + ${session.executionRootDirectory}/mvn-phase-script.sh + + + ${project.groupId} + ${project.artifactId} + ${project.version} + ${onap.nexus.url} + ${onap.nexus.rawrepo.baseurl.upload} + ${onap.nexus.rawrepo.baseurl.download} + ${onap.nexus.rawrepo.serverid} + ${onap.nexus.dockerregistry.daily} + ${onap.nexus.dockerregistry.release} + + + - - - org.codehaus.mojo @@ -167,147 +183,92 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property. clean phase script clean - exec + + exec + - ${session.executionRootDirectory}/mvn-phase-script.sh - ${project.artifactId} + __ clean - - - ${project.groupId} - ${project.artifactId} - ${project.version} - ${onap.nexus.url} - - - generate-sources script generate-sources - exec + + exec + - mvn-phase-script.sh - ${project.artifactId} + __ generate-sources - - - ${project.groupId} - ${project.artifactId} - ${project.version} - ${onap.nexus.url} - - - compile script compile - exec + + exec + - mvn-phase-script.sh - ${project.artifactId} + __ compile - - - ${project.groupId} - ${project.artifactId} - ${project.version} - ${onap.nexus.url} - - - package script package - exec + + exec + - mvn-phase-script.sh - ${project.artifactId} + __ package - - - ${project.groupId} - ${project.artifactId} - ${project.version} - ${onap.nexus.url} - - - test script test - exec + + exec + - mvn-phase-script.sh - ${project.artifactId} + __ test - - - ${project.groupId} - ${project.artifactId} - ${project.version} - ${onap.nexus.url} - - - install script install - exec + + exec + - mvn-phase-script.sh - ${project.artifactId} + __ install - - - ${project.groupId} - ${project.artifactId} - ${project.version} - ${onap.nexus.url} - - - deploy script deploy - exec + + exec + - mvn-phase-script.sh - ${project.artifactId} + __ deploy - - - ${project.groupId} - ${project.artifactId} - ${project.version} - ${onap.nexus.url} - - -- cgit 1.2.3-korg