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:
committed by
Mateusz Kowalczyk
parent
588a5e92a3
commit
72e76a18c1
@@ -0,0 +1,17 @@
|
||||
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
|
||||
@@ -0,0 +1,24 @@
|
||||
{ stdenv, fetchurl, jdk, makeWrapper }:
|
||||
|
||||
assert jdk != null;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "apache-maven-3.2.3";
|
||||
|
||||
builder = ./builder.sh;
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://apache/maven/maven-3/3.2.3/binaries/apache-maven-3.2.3-bin.tar.gz;
|
||||
sha256 = "1vd81bhj68mhnkb0zlarshlk61i2n160pyxxmrc739p3vsm08gxz";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user