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