summaryrefslogtreecommitdiffstats
path: root/wfenginemgrservice/src
diff options
context:
space:
mode:
Diffstat (limited to 'wfenginemgrservice/src')
-rw-r--r--wfenginemgrservice/src/main/docker/wfenginemgrservice-docker-build_image.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/wfenginemgrservice/src/main/docker/wfenginemgrservice-docker-build_image.sh b/wfenginemgrservice/src/main/docker/wfenginemgrservice-docker-build_image.sh
index 224e62d..5fb0b37 100644
--- a/wfenginemgrservice/src/main/docker/wfenginemgrservice-docker-build_image.sh
+++ b/wfenginemgrservice/src/main/docker/wfenginemgrservice-docker-build_image.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/env /bin/bash
+#!/bin/bash
DIRNAME=`dirname $0`
DOCKER_BUILD_DIR=`cd $DIRNAME/; pwd`
@@ -16,16 +16,18 @@ IMAGE_NAME="${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/${IMAGE}"
POM_DIR="../../../"
cd ${POM_DIR}
-
+env
mvncmd=$(whereis mvn | grep ^mvn |awk '{print $2}')
-echo mvncmd=$mvncmd
if [[ 1$mvncmd != 1 ]]; then
echo $mvncmd
elif [ $MVN ]; then
+ echo MVN
mvncmd=$MVN
elif [ $M2_HOME ]; then
+ echo M2_HOME
mvncmd=$M2_HOME/bin/mvn
elif [ -f "/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33/bin/mvn" ]; then
+ echo /w/tools/hudson.tasks.Maven_MavenInstallation/mvn33/bin/mvn
mvncmd="/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33/bin/mvn"
elif [ -f "/usr/share/maven/bin/mvn" ]; then
mvncmd="/usr/share/maven/bin/mvn"
@@ -33,6 +35,7 @@ else
echo "Maven is not installed, mvncmd=$mvncmd"
exit 1
fi
+echo "mvncmd=${mvncmd}"
pwd
VERSION=$(printf 'VER\t${project.version}'|$mvncmd help:evaluate|grep '^VER'|cut -f2)