You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Jason van Zyl (JIRA)" <ji...@codehaus.org> on 2005/11/18 15:23:06 UTC
[jira] Closed: (MNG-1470) mvn can't calculate M2_HOME when mvn is a relative symlink
[ http://jira.codehaus.org/browse/MNG-1470?page=all ]
Jason van Zyl closed MNG-1470:
------------------------------
Resolution: Fixed
> mvn can't calculate M2_HOME when mvn is a relative symlink
> ----------------------------------------------------------
>
> Key: MNG-1470
> URL: http://jira.codehaus.org/browse/MNG-1470
> Project: Maven 2
> Type: Bug
> Components: bootstrap
> Versions: 2.0
> Environment: Debian GNU/Linux - bash 3.0-17
> Reporter: Nicolás Lichtmaier
> Attachments: patch
>
>
> There seems to be a typo in the "mvn" script!
> Steps to reproduce:
> [ untar maven and move it to /usr/local/maven ]
> $ cd /usr/local/bin
> $ ln -sf ../maven/bin/mvn .
> $ mvn
> /usr/local/bin/mvn: line 75: cd: ../maven/bin/..: No existe el fichero o el directorio
> Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
> It's a very simple fix. When traversing synlinks to get the canonical pathname, mvn should treat relative references by appending them to "dirname", no the other way around!
> A patch is attached.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org