You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2005/01/21 14:34:11 UTC

[jira] Commented: (MAVEN-1532) [PATCH] maven shell script doesn't properly resolve symbolic links

The following comment has been added to this issue:

     Author: Jerome Lacoste
    Created: Fri, 21 Jan 2005 8:33 AM
       Body:
The patch works for me. To test do the following

  cd ~/local/lib
  wget http://www.apache.org/dist/maven/binaries/maven-1.0.2.tar.bz2
  tar -jxovf maven-1.0.2.tar.bz2
  ln -s maven-1.0.2 maven
  cd ~/local/bin
  ln -s ../lib/maven/bin/maven .
  export PATH=/bin:/usr/bin:$HOME/local/bin

# then with maven 1.0.2:
  maven
Exception in thread "main" java.lang.NoClassDefFoundError: com/werken/forehead/Forehead

# with patch 
  maven -v
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2


---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MAVEN-1532?page=comments#action_29125

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MAVEN-1532

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1532
    Summary: [PATCH] maven shell script doesn't properly resolve symbolic links
       Type: Bug

     Status: Unassigned
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
 Components: 
             cli
   Versions:
             1.0.2

   Assignee: 
   Reporter: James Berry

    Created: Thu, 9 Dec 2004 3:15 PM
    Updated: Fri, 21 Jan 2005 8:33 AM
Environment: Mac OS X

Description:
The maven shell script doesn't properly find MAVEN_HOME when maven is invoked as a symlink and/or when the symlink is a relative symlink.

The attached patch corrects both of these issues.

Ironically, this used to work in 1.0.1 but was broken for 1.0.2.

This patch also enables the two checks for special MAVEN_HOME directories to work correctly.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report 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