2006-03-31 14:10:20 +02:00
|
|
|
source $stdenv/setup
|
|
|
|
source $makeWrapper
|
|
|
|
|
|
|
|
unpackPhase
|
|
|
|
|
|
|
|
mkdir -p $out
|
|
|
|
cp -r $name/* $out
|
|
|
|
|
|
|
|
# Make a backup of the original directory
|
|
|
|
cp -r $out/bin $out/bin-orig
|
|
|
|
# Remove the original mvn from the bin directory
|
2006-03-31 14:44:06 +02:00
|
|
|
rm $out/bin/$mavenBinary
|
|
|
|
# Set the JAVA_HOME variable when using Maven
|
2006-04-02 19:12:52 +02:00
|
|
|
makeWrapper "$out/bin-orig/$mavenBinary" "$out/bin/$mavenBinary" --set JAVA_HOME "$jdk"
|
|
|
|
|
|
|
|
# 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
|