Browse Source

Ensure version is scraped from parent pom

pull/6/head
Dave Syer 8 years ago
parent
commit
bc4f5a3788
  1. 2
      mvnw

2
mvnw vendored

@ -227,7 +227,7 @@ export MAVEN_CMD_LINE_ARGS @@ -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

Loading…
Cancel
Save