Skip to content

Commit

Permalink
Changing the way we retrieve the project version
Browse files Browse the repository at this point in the history
  • Loading branch information
ridv committed Aug 18, 2016
1 parent 83709f6 commit d4d7a6b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/vagrant/provision-dev-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ readonly IP_ADDRESS=192.168.33.7
readonly MESOS_VERSION=1.0.0-2.0.89
readonly MARATHON_VERSION=1.1.2-1.0.482
readonly PROJECT_HOME_DIR='/home/vagrant/marathon'
readonly PROJECT_VERSION=`mvn -f $PROJECT_HOME_DIR/pom.xml org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | sed -n -e '/^\[.*\]/ !{ /^[0-9]/ { p; q } }'`
readonly PROJECT_VERSION=`mvn -f /vagrant/pom.xml -q \
-Dexec.executable="echo" \
-Dexec.args='${project.version}' \
--non-recursive \
org.codehaus.mojo:exec-maven-plugin:1.3.1:exec`
export PROJECT_VERSION


Expand Down

0 comments on commit d4d7a6b

Please sign in to comment.