Skip to content

Commit

Permalink
Ensure version is scraped from parent pom
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Syer committed Sep 20, 2016
1 parent ee50361 commit 96b6f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mvnw
Expand Up @@ -227,7 +227,7 @@ export MAVEN_CMD_LINE_ARGS
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain

echo "Running version check"
VERSION=$( sed '\!<parent!,\!</parent!d' pom.xml | grep '<version' | head -1 | sed -e 's/.*<version>//' -e 's!</version>.*$!!' )
VERSION=$( sed '\!<parent!,\!</parent!d' `dirname $0`/pom.xml | grep '<version' | head -1 | sed -e 's/.*<version>//' -e 's!</version>.*$!!' )
echo "The found version is [${VERSION}]"

if echo $VERSION | egrep -q 'M|RC'; then
Expand Down

0 comments on commit 96b6f8a

Please sign in to comment.