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