aboutsummaryrefslogtreecommitdiff
path: root/make-distribution.sh
diff options
context:
space:
mode:
authorRahul Singhal <rahul.singhal@guavus.com>2014-04-27 15:17:06 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-04-27 15:18:12 -0700
commit98b13e023a50c25d98d7628dbc1d84c2bce0c40a (patch)
treebfbbda818ce92e8433808966d88fc30f539845a8 /make-distribution.sh
parentce57624b8232159fe3ec6db228afc622133df591 (diff)
downloadspark-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-xmake-distribution.sh2
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."