Skip to content

Commit

Permalink
SPARK-1650: Correctly identify maven project version
Browse files Browse the repository at this point in the history
Better account for various side-effect outputs while executing
"mvn help:evaluate -Dexpression=project.version"

Author: Rahul Singhal <[email protected]>

Closes apache#572 from rahulsinghaliitd/SPARK-1650 and squashes the following commits:

fd6a611 [Rahul Singhal] SPARK-1650: Correctly identify maven project version
  • Loading branch information
Rahul Singhal authored and pwendell committed Apr 27, 2014
1 parent aa9a7f5 commit 7b2527d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make-distribution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 7b2527d

Please sign in to comment.