2006-03-31 13:10:20 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
unpackPhase
|
|
|
|
|
2015-08-03 18:53:30 +01:00
|
|
|
mkdir -p $out/maven
|
|
|
|
cp -r $name/* $out/maven
|
2006-03-31 13:10:20 +01:00
|
|
|
|
2020-02-21 13:26:33 +00:00
|
|
|
makeWrapper $out/maven/bin/mvn $out/bin/mvn --set-default JAVA_HOME "$jdk"
|
2020-05-15 15:28:45 +01:00
|
|
|
makeWrapper $out/maven/bin/mvnDebug $out/bin/mvnDebug --set-default JAVA_HOME "$jdk"
|
2006-04-02 18:12:52 +01:00
|
|
|
|
|
|
|
# Add the maven-axis and JIRA plugin by default when using maven 1.x
|
2015-08-03 18:53:30 +01:00
|
|
|
if [ -e $out/maven/bin/maven ]
|
2006-04-02 18:12:52 +01:00
|
|
|
then
|
|
|
|
export OLD_HOME=$HOME
|
|
|
|
export HOME=.
|
2015-08-03 18:53:30 +01:00
|
|
|
$out/maven/bin/maven plugin:download -DgroupId=maven-plugins -DartifactId=maven-axis-plugin -Dversion=0.7
|
2006-04-02 18:12:52 +01:00
|
|
|
export HOME=OLD_HOME
|
|
|
|
fi
|