git.iko.soy/typeable/nixpkgs
on master help sign in
By default install the axis-maven and jira-soap plugin. This should probably

be done with some sort of wrapper, such that the plugins aren't installed by default. svn path=/nixpkgs/trunk/; revision=5133

commit6d47926badb7ad978e0051592f20d72a163511cb authorRoy van den Broek <rbroek@cs.uu.nl> dateSun 2 Apr 2006, 17:12 (21 years ago) parentde46858
1 file changed+11−1
pkgs/misc/maven/builder.sh+11−1
pkgs/misc/maven/builder.sh+11−1
@@ -11,4 +11,14 @@ cp -r $out/bin $out/bin-orig
1111# Remove the original mvn from the bin directory
1212rm $out/bin/$mavenBinary
1313# Set the JAVA_HOME variable when using Maven
14−makeWrapper "$out/bin-orig/$mavenBinary" "$out/bin/$mavenBinary" --set JAVA_HOME "$jdk"
14+makeWrapper "$out/bin-orig/$mavenBinary" "$out/bin/$mavenBinary" --set JAVA_HOME "$jdk"
15+
16+# Add the maven-axis and JIRA plugin by default when using maven 1.x
17+if [ -e $out/bin/maven ]
18+then
19+ export OLD_HOME=$HOME
20+ export HOME=.
21+ $out/bin/maven plugin:download -DgroupId=maven-plugins -DartifactId=maven-axis-plugin -Dversion=0.7
22+ $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
23+ export HOME=OLD_HOME
24+fi