8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
17 lines
436 B
Bash
17 lines
436 B
Bash
source $stdenv/setup
|
|
|
|
unpackPhase
|
|
|
|
mkdir -p $out/maven
|
|
cp -r $name/* $out/maven
|
|
|
|
makeWrapper $out/maven/bin/mvn $out/bin/mvn --set-default JAVA_HOME "$jdk"
|
|
|
|
# Add the maven-axis and JIRA plugin by default when using maven 1.x
|
|
if [ -e $out/maven/bin/maven ]
|
|
then
|
|
export OLD_HOME=$HOME
|
|
export HOME=.
|
|
$out/maven/bin/maven plugin:download -DgroupId=maven-plugins -DartifactId=maven-axis-plugin -Dversion=0.7
|
|
export HOME=OLD_HOME
|
|
fi
|