Don't rely on mvn script to locate Maven home

This commit is contained in:
Mikolaj Izdebski 2018-01-09 18:18:44 +01:00
parent 8e3295cd8c
commit abfebc45df

View File

@ -227,7 +227,7 @@ find -name ResolverIntegrationTest.java -delete
%pom_remove_plugin :maven-jar-plugin xmvn-tools
# get mavenVersion that is expected
maven_home=$(readlink -f $(dirname $(readlink $(which mvn)))/..)
maven_home=$(readlink -f $(dirname $(readlink $(which xmvn)))/../../maven)
mver=$(sed -n '/<mavenVersion>/{s/.*>\(.*\)<.*/\1/;p}' \
xmvn-parent/pom.xml)
mkdir -p target/dependency/