Skip to content

Commit 7b2527d

Browse files
Rahul Singhalpwendell
authored andcommitted
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 <[email protected]> Closes mesos#572 from rahulsinghaliitd/SPARK-1650 and squashes the following commits: fd6a611 [Rahul Singhal] SPARK-1650: Correctly identify maven project version
1 parent aa9a7f5 commit 7b2527d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

make-distribution.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
FWDIR="$(cd `dirname $0`; pwd)"
4444
DISTDIR="$FWDIR/dist"
4545

46-
VERSION=$(mvn help:evaluate -Dexpression=project.version |grep -v "INFO")
46+
VERSION=$(mvn help:evaluate -Dexpression=project.version | grep -v "INFO" | tail -n 1)
4747
if [ $? == -1 ] ;then
4848
echo -e "You need Maven installed to build Spark."
4949
echo -e "Download Maven from https://maven.apache.org."

0 commit comments

Comments
 (0)