diff --git a/mvnw b/mvnw index 29c3201..53c0d72 100755 --- a/mvnw +++ b/mvnw @@ -46,7 +46,7 @@ if [ -z "$MAVEN_SKIP_RC" ] ; then fi -VERSION=$(sed `dirname $0`/pom.xml -e '/\(.*\)<.*/\1/') +VERSION=$(awk '/ 0) {$0=$0} 1' `dirname $0`/pom.xml| grep '\(.*\)<.*/\1/') 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"