You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Vitaly Berdinskikh (JIRA)" <ji...@codehaus.org> on 2006/06/02 16:49:43 UTC
[jira] Created: (MNG-2341) Shell script mvn too old
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
[jira] Updated: (MNG-2341) Shell script mvn too old
Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2341?page=all ]
Kenney Westerhof updated MNG-2341:
----------------------------------
Fix Version/s: (was: 2.0.6)
2.0.5
> Shell script mvn too old
> ------------------------
>
> Key: MNG-2341
> URL: http://jira.codehaus.org/browse/MNG-2341
> Project: Maven 2
> Issue Type: Bug
> Components: Command Line
> Affects Versions: 2.0.4
> Environment: For *nix OS (Linux, *BSD etc.)
> Reporter: Vitaly Berdinskikh
> Fix For: 2.0.5
>
>
> 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
[jira] Closed: (MNG-2341) Shell script mvn too old
Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2341?page=all ]
Kenney Westerhof closed MNG-2341.
---------------------------------
Assignee: Kenney Westerhof
Resolution: Fixed
Fixed in revision 470421
> Shell script mvn too old
> ------------------------
>
> Key: MNG-2341
> URL: http://jira.codehaus.org/browse/MNG-2341
> Project: Maven 2
> Issue Type: Bug
> Components: Command Line
> Affects Versions: 2.0.4
> Environment: For *nix OS (Linux, *BSD etc.)
> Reporter: Vitaly Berdinskikh
> Assigned To: Kenney Westerhof
> Fix For: 2.0.5
>
>
> 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
[jira] Updated: (MNG-2341) Shell script mvn too old
Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2341?page=all ]
Kenney Westerhof updated MNG-2341:
----------------------------------
Fix Version/s: (was: 2.0.5)
2.0.6
> Shell script mvn too old
> ------------------------
>
> Key: MNG-2341
> URL: http://jira.codehaus.org/browse/MNG-2341
> Project: Maven 2
> Issue Type: Bug
> Components: Command Line
> Affects Versions: 2.0.4
> Environment: For *nix OS (Linux, *BSD etc.)
> Reporter: Vitaly Berdinskikh
> Fix For: 2.0.6
>
>
> 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
[jira] Updated: (MNG-2341) Shell script mvn too old
Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2341?page=all ]
Kenney Westerhof updated MNG-2341:
----------------------------------
Fix Version/s: 2.1
Merged to trunk, in revision 470423
> Shell script mvn too old
> ------------------------
>
> Key: MNG-2341
> URL: http://jira.codehaus.org/browse/MNG-2341
> Project: Maven 2
> Issue Type: Bug
> Components: Command Line
> Affects Versions: 2.0.4
> Environment: For *nix OS (Linux, *BSD etc.)
> Reporter: Vitaly Berdinskikh
> Assigned To: Kenney Westerhof
> Fix For: 2.1, 2.0.5
>
>
> 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
[jira] Updated: (MNG-2341) Shell script mvn too old
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2341?page=all ]
John Casey updated MNG-2341:
----------------------------
Fix Version: 2.0.5
> 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
> Fix For: 2.0.5
>
>
> 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