From 2eeb0ccd7b4c35dfde5a874c8a253f98714d1f60 Mon Sep 17 00:00:00 2001 From: "Singal, Kapil (ks220y)" Date: Sun, 21 Mar 2021 23:45:12 -0400 Subject: Replacing exec-maven-plugin with maven-antrun-plugin With changes users with Windows environment can build module Note: Couldn't find alternate for running a bash script, so moved same into a profile which only gets activated only if OS family is UNIX Issue-ID: CCSDK-3226 Signed-off-by: Singal, Kapil (ks220y) Change-Id: Idc7c0874525502553b6290dc151a2db84447fd68 --- dgbuilder-docker/pom.xml | 133 +++++++++++++++++++++++++---------------------- 1 file changed, 70 insertions(+), 63 deletions(-) (limited to 'dgbuilder-docker') diff --git a/dgbuilder-docker/pom.xml b/dgbuilder-docker/pom.xml index a857723b..d5f2df4a 100644 --- a/dgbuilder-docker/pom.xml +++ b/dgbuilder-docker/pom.xml @@ -66,93 +66,64 @@ - - org.codehaus.mojo - exec-maven-plugin - 1.5.0 + org.apache.maven.plugins + maven-antrun-plugin + 1.8 - Make-stage-dir + make-stage-dir generate-sources - - exec - - /bin/mkdir - - -p - ${basedir}/target/docker-stage/opt/onap/ccsdk - + + + - - - Unzip dgbuilder - generate-sources - exec + run - - /usr/bin/unzip - - -d - ${basedir}/target/docker-stage/opt/onap/ccsdk - ../dgbuilder/target/*.zip - - - Copy dgbuilder + unzip-dgbuilder generate-sources - - exec - - /bin/cp - - -r - ../dgbuilder - ${basedir}/target/docker-stage/opt/onap/ccsdk - + + + + + + + + + run + - - dgbuilder createReleaseDir + copy-dgbuilder generate-sources - - exec - - /bin/bash - - ${basedir}/target/docker-stage/opt/onap/ccsdk/dgbuilder/createReleaseDir.sh - 1702 - dguser - change_email_id@dgbuilder.com - + + + + + + + run + - change shell permissions process-sources - - exec - - /usr/bin/find - - ${basedir}/target/docker-stage/opt/onap/ccsdk - -name - *.sh - -exec - chmod - +x - {} - ; - + + + + + run + @@ -160,6 +131,42 @@ + + unix + + + unix + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.5.0 + + + + dgbuilder-createReleaseDir + generate-sources + + exec + + + /bin/bash + + ${basedir}/target/docker-stage/opt/onap/ccsdk/dgbuilder/createReleaseDir.sh + 1702 + dguser + change_email_id@dgbuilder.com + + + + + + + + docker -- cgit 1.2.3-korg