maven: make jdk overridable
This makes it possible to use maven with different (newer) jdks. Fixes #75630
This commit is contained in:
parent
e2b4abe3c8
commit
0141cfefbc
@ -5,7 +5,7 @@ unpackPhase
|
|||||||
mkdir -p $out/maven
|
mkdir -p $out/maven
|
||||||
cp -r $name/* $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
|
# Add the maven-axis and JIRA plugin by default when using maven 1.x
|
||||||
if [ -e $out/maven/bin/maven ]
|
if [ -e $out/maven/bin/maven ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user