mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
6d47926bad
be done with some sort of wrapper, such that the plugins aren't installed by default. svn path=/nixpkgs/trunk/; revision=5133
25 lines
822 B
Bash
25 lines
822 B
Bash
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
|
|
rm $out/bin/$mavenBinary
|
|
# Set the JAVA_HOME variable when using Maven
|
|
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
|
|
$out/bin/maven plugin:download -Dmaven.repo.remote=http://repository.atlassian.com,http://www.ibiblio.org/maven -DartifactId=maven-axis-plugin -DgroupId=atlassian -Dversion=0.7AXIS1.3
|
|
export HOME=OLD_HOME
|
|
fi
|