Shell script mvn too old ------------------------ Key: MNG-2341 URL: http://jira.codehaus.org/browse/MNG-2341 Project: Maven 2 Type: Bug
Components: Command Line Versions: 2.0.4 Environment: For *nix OS (Linux, *BSD etc.) Reporter: Vitaly Berdinskikh Shell script not equivalent on content mvn.bat. In mvn use old environment variable MAVEN_HOME instead of M2_HOME: ==== quote ==== ... if [ -z "$M2_HOME" ] ; then # try to find MAVEN if [ -d /opt/m2 ] ; then MAVEN_HOME=/opt/m2 fi if [ -d "$HOME/m2" ] ; then MAVEN_HOME="$HOME/m2" fi ## resolve links - $0 may be a link to maven's home PRG="$0" # need this for relative symlinks while [ -h "$PRG" ] ; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '.*-> \(.*\)$'` if expr "$link" : '/.*' > /dev/null; then PRG="$link" else PRG="`dirname "$PRG"`/$link" fi done saveddir=`pwd` M2_HOME=`dirname "$PRG"`/.. # make it fully qualified M2_HOME=`cd "$M2_HOME" && pwd` cd "$saveddir" # echo Using m2 at $M2_HOME fi ... ==== quote ==== Also in header present old string of copyright, absent description used environment varibles unlike mvn.bat. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira