From 62a5dbea06f5c492d2f6f6efd98ed07a5f304132 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Tue, 12 Mar 2013 13:27:04 +0100 Subject: [PATCH] In maven-script don't override M2_HOME if already set --- maven-script | 2 +- maven.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/maven-script b/maven-script index 4ab680b..0792f41 100644 --- a/maven-script +++ b/maven-script @@ -5,5 +5,5 @@ if [ -f /usr/share/java-utils/java-functions ] ; then set_javacmd fi -export M2_HOME=/usr/share/maven +export M2_HOME="${M2_HOME:-/usr/share/maven}" export JAVA_HOME; $M2_HOME/bin/mvn "$@" diff --git a/maven.spec b/maven.spec index c7187de..0cf9d69 100644 --- a/maven.spec +++ b/maven.spec @@ -2,7 +2,7 @@ Name: maven Version: 3.0.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Java project management and project comprehension tool Group: Development/Tools @@ -192,6 +192,9 @@ ln -sf $(build-classpath plexus/classworlds) \ %changelog +* Tue Mar 12 2013 Mikolaj Izdebski - 3.0.5-2 +- In maven-script don't override M2_HOME if already set + * Fri Mar 1 2013 Mikolaj Izdebski - 3.0.5-1 - Update to upstream version 3.0.5 - Move settings.xml to /etc