diff options
author | Rahul Singhal <rahul.singhal@guavus.com> | 2014-04-27 15:17:06 -0700 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-04-27 15:18:12 -0700 |
commit | 98b13e023a50c25d98d7628dbc1d84c2bce0c40a (patch) | |
tree | bfbbda818ce92e8433808966d88fc30f539845a8 /make-distribution.sh | |
parent | ce57624b8232159fe3ec6db228afc622133df591 (diff) | |
download | spark-98b13e023a50c25d98d7628dbc1d84c2bce0c40a.tar.gz spark-98b13e023a50c25d98d7628dbc1d84c2bce0c40a.tar.bz2 spark-98b13e023a50c25d98d7628dbc1d84c2bce0c40a.zip |
SPARK-1650: Correctly identify maven project version
Better account for various side-effect outputs while executing
"mvn help:evaluate -Dexpression=project.version"
Author: Rahul Singhal <rahul.singhal@guavus.com>
Closes #572 from rahulsinghaliitd/SPARK-1650 and squashes the following commits:
fd6a611 [Rahul Singhal] SPARK-1650: Correctly identify maven project version
(cherry picked from commit 7b2527d74deac9512f8ee9ad6d4b060f05e1ab26)
Signed-off-by: Patrick Wendell <pwendell@gmail.com>
Diffstat (limited to 'make-distribution.sh')
-rwxr-xr-x | make-distribution.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/make-distribution.sh b/make-distribution.sh index 55fe6c09d0..661d1ff5e5 100755 --- a/make-distribution.sh +++ b/make-distribution.sh @@ -43,7 +43,7 @@ FWDIR="$(cd `dirname $0`; pwd)" DISTDIR="$FWDIR/dist" -VERSION=$(mvn help:evaluate -Dexpression=project.version |grep -v "INFO") +VERSION=$(mvn help:evaluate -Dexpression=project.version | grep -v "INFO" | tail -n 1) if [ $? == -1 ] ;then echo -e "You need Maven installed to build Spark." echo -e "Download Maven from https://maven.apache.org." |