You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2005/09/20 00:40:12 UTC
[jira] Closed: (MNG-919) Installation with symlinks
[ http://jira.codehaus.org/browse/MNG-919?page=all ]
Brett Porter closed MNG-919:
----------------------------
Resolution: Duplicate
> Installation with symlinks
> --------------------------
>
> Key: MNG-919
> URL: http://jira.codehaus.org/browse/MNG-919
> Project: Maven 2
> Type: Improvement
> Components: maven-core
> Versions: 2.0-beta-1
> Environment: Linux/Unix
> Reporter: Alex Wood
> Attachments: m2-failed-start.txt
>
>
> When trying to install the Maven 2 beta, I followed the instructions available at http://maven.apache.org/maven2/download.html
> However, I did not set my $PATH to include a reference to the Maven 2 directory. I prefer to keep my $PATH very short and so I put a symlink to m2 in /usr/local/bin. When I tried to start Maven 2, I received the following message:
> Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
> After looking at the m2 shell script, I noticed the reference to $M2_HOME was not being set correctly. After setting that variable correctly, Maven 2 started without a problem.
> I've attached the output of bash -x for a failed startup. It looks to me like the problem is in this section
> ## resolve links - $0 may be a link to maven's home
> PRG="$0"
> saveddir=`pwd`
> # need this for relative symlinks
> PRGDIR=`dirname "$PRG"`
> cd "$PRGDIR"
> while [ -h "$PRG" ] ; do
> [...]
> Since my symlink was in my path, PRG got set to just "m2" which fouled the rest of the script. Using 'which' might help here.
> ------------------------
> Regards,
> Alex
--
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