3
0
Fork 0
forked from mirrors/nixpkgs

maven: make jdk overridable

This makes it possible to use maven with different (newer) jdks.

Fixes #75630
This commit is contained in:
Timo Kaufmann 2020-02-21 14:26:33 +01:00
parent e2b4abe3c8
commit 0141cfefbc

View file

@ -5,7 +5,7 @@ unpackPhase
mkdir -p $out/maven
cp -r $name/* $out/maven
makeWrapper $out/maven/bin/mvn $out/bin/mvn --set JAVA_HOME "$jdk"
makeWrapper $out/maven/bin/mvn $out/bin/mvn --set-default JAVA_HOME "$jdk"
# Add the maven-axis and JIRA plugin by default when using maven 1.x
if [ -e $out/maven/bin/maven ]