Update mvn-get-version.sh
This commit is contained in:
@@ -50,6 +50,7 @@ if [ -n "$IS_DEPLOY" ]; then
|
||||
VERSION=$($SCDIR/mvn-get-version.sh)
|
||||
fi
|
||||
echo "Project Version:$VERSION"
|
||||
set +e
|
||||
IS_SNAPSHOT=$(echo $VERSION | grep -E "^.*-SNAPSHOT$")
|
||||
IS_MILESTONE=$(echo $VERSION | grep -E "^.*-(M|RC)[0-9]+$")
|
||||
IS_GA=$(echo $VERSION | grep -E "^.*\.[0-9]+$")
|
||||
@@ -105,7 +106,7 @@ if [ "$SKIP_RESOLVE" = "" ]; then
|
||||
SKIP_RESOLVE=true
|
||||
fi
|
||||
|
||||
if [ "$SKIP_RESOLVE" = "false" ]; then
|
||||
if [ "$SKIP_RESOLVE" = "true" ]; then
|
||||
RETRIES=-1
|
||||
RESULT=0
|
||||
else
|
||||
|
||||
@@ -6,7 +6,6 @@ if (( sourced == 0 )); then
|
||||
echo "This script must be invoked using: source $0 $*"
|
||||
exit 1
|
||||
fi
|
||||
grep --version
|
||||
# get the target release version and type
|
||||
export BUILD_VERSION=$(cat $SCDIR/version/RELEASE_VERSION)
|
||||
echo "BUILD_VERSION: $BUILD_VERSION"
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
VERSIONS=$(./mvnw exec:exec -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive -q | sed 's/\"//g' | sed 's/version=//g')
|
||||
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
|
||||
SCDIR=$(realpath $SCDIR)
|
||||
VERSIONS=$($SCDIR/mvnw exec:exec -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive -q | sed 's/\"//g' | sed 's/version=//g')
|
||||
for v in $VERSIONS; do
|
||||
VERSION=$v
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user