Allow copying dangling symlinks in Maven home

This commit is contained in:
Mikolaj Izdebski 2019-11-20 08:22:03 +01:00
parent cdd2c32e13
commit b0991423da

View File

@ -224,7 +224,7 @@ maven_home=$(realpath $(dirname $(realpath $(which mvn)))/..)
mver=$(sed -n '/<mavenVersion>/{s/.*>\(.*\)<.*/\1/;p}' \
xmvn-parent/pom.xml)
mkdir -p target/dependency/
cp -aL ${maven_home} target/dependency/apache-maven-$mver
cp -a ${maven_home} target/dependency/apache-maven-$mver
%build
%mvn_build -s -j