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