[ 
https://jira.codehaus.org/browse/MNG-5688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=364723#comment-364723
 ] 

Arcadiy Ivanov commented on MNG-5688:
-------------------------------------

You should observe, that unless JAVA_HOME environmental variable is actually 
set, all of the clauses if [ -z "$JAVA_HOME" ] ; then will be tried and you 
will get to the last one on line 142 as a last ditch effort to resolve JDK home 
by finding javac via PATH. That effort in Darwin currently cannot succeed as 
there is no "-f" option for readlink

> mvn script is not compatible with OSX (Darwin) - PATCH ATTACHED
> ---------------------------------------------------------------
>
>                 Key: MNG-5688
>                 URL: https://jira.codehaus.org/browse/MNG-5688
>             Project: Maven
>          Issue Type: Bug
>          Components: Command Line, General
>    Affects Versions: 3.1.1, 3.2.1, 3.2.2, 3.2.3
>         Environment: Darwin hostname.home 13.3.0 Darwin Kernel Version 
> 13.3.0: Tue Jun 3 21:27:35 PDT 2014
>            Reporter: Arcadiy Ivanov
>         Attachments: mvn.patch
>
>
> mvn shell script contains readlink logic that does not work on Mac OS X.
> Patch is attached.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to