Update maven to 3.2.3 and put it in a more sensible location

Closes #4187.

Signed-off-by: Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>
This commit is contained in:
Daniel Peebles
2014-09-20 11:29:59 -04:00
committed by Mateusz Kowalczyk
parent 588a5e92a3
commit 72e76a18c1
3 changed files with 6 additions and 6 deletions

View File

@@ -1,17 +0,0 @@
source $stdenv/setup
unpackPhase
mkdir -p $out
cp -r $name/* $out
wrapProgram $out/bin/mvn --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

View File

@@ -1,24 +0,0 @@
{ stdenv, fetchurl, jdk, makeWrapper }:
assert jdk != null;
stdenv.mkDerivation {
name = "apache-maven-3.1.1";
builder = ./builder.sh;
src = fetchurl {
url = mirror://apache/maven/binaries/apache-maven-3.1.1-bin.tar.gz;
sha256 = "06ymc5y8bp5crcz74z2m9pf58aid5q11v2klnjmxb4ar8mkd8zh7";
};
buildInputs = [ makeWrapper ];
inherit jdk;
meta = with stdenv.lib; {
description = "Build automation tool (used primarily for Java projects)";
homepage = http://maven.apache.org/;
license = licenses.asl20;
};
}