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"