In maven-script don't override M2_HOME if already set

This commit is contained in:
Mikolaj Izdebski 2013-03-12 13:27:04 +01:00
parent a88154f287
commit 62a5dbea06
2 changed files with 5 additions and 2 deletions

View File

@ -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 "$@"

View File

@ -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 <mizdebsk@redhat.com> - 3.0.5-2
- In maven-script don't override M2_HOME if already set
* Fri Mar 1 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.0.5-1
- Update to upstream version 3.0.5
- Move settings.xml to /etc