Skip to content
Snippets Groups Projects
Commit 7b2527d7 authored by Rahul Singhal's avatar Rahul Singhal Committed by Patrick Wendell
Browse files

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
parent aa9a7f5d
No related branches found
No related tags found
No related merge requests found
......@@ -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."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment