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:17:54 -0700 |
commit | 7b2527d74deac9512f8ee9ad6d4b060f05e1ab26 (patch) | |
tree | 7501fc568d2d965b85c96e066d5a9ecd405a70aa | |
parent | aa9a7f5db7bffcdbcd7fd53694c606d3a8cdd21f (diff) | |
download | spark-7b2527d74deac9512f8ee9ad6d4b060f05e1ab26.tar.gz spark-7b2527d74deac9512f8ee9ad6d4b060f05e1ab26.tar.bz2 spark-7b2527d74deac9512f8ee9ad6d4b060f05e1ab26.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
-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." |