From a89a2331354f0b2a16f8eaa8211e6b7766e8f9d9 Mon Sep 17 00:00:00 2001 From: Soby Chacko Date: Thu, 12 Nov 2020 15:19:30 -0500 Subject: [PATCH] mvnw changes Detect if the version uses maven revision feature --- mvnw | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mvnw b/mvnw index a08b219e..1e178626 100755 --- a/mvnw +++ b/mvnw @@ -230,6 +230,11 @@ echo "Running version check" VERSION=$( sed '\!//' -e 's!.*$!!' ) echo "The found version is [${VERSION}]" +if echo $VERSION | egrep -q 'revision'; then + VERSION=$( sed '\!//' -e 's!.*$!!' ) + echo "The found version is [${VERSION}]" +fi + if echo $VERSION | egrep -q 'M|RC'; then echo Activating \"milestone\" profile for version=\"$VERSION\" echo $MAVEN_ARGS | grep -q milestone || MAVEN_ARGS="$MAVEN_ARGS -Pmilestone"