[ 
https://issues.apache.org/jira/browse/MNG-6191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15941175#comment-15941175
 ] 

Stephen Connolly commented on MNG-6191:
---------------------------------------

Seems to work on quick tests that I have done on macOS and linux... I'll leave 
it up to the shell experts to decide if it is the best solution

(the alternative would be to add specific uname detection for macOS and then 
use this command on macOS only (and use the existing 

{code}
basedir=$(dirname "$(readlink -f "${arg}")")
{code}

for other unixes - note I think there is a missing layer of quotes in that form 
too)

> mvn -f complains about illegal readlink option under macOS
> ----------------------------------------------------------
>
>                 Key: MNG-6191
>                 URL: https://issues.apache.org/jira/browse/MNG-6191
>             Project: Maven
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 3.5.0-alpha-1
>         Environment: Java version: 1.8.0_111, vendor: Oracle Corporation
> Java home: 
> /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.10.5", arch: "x86_64", family: "mac"
>            Reporter: Andreas Sewe
>            Priority: Minor
>
> This is a *regression* from Maven 3.3.9. With 3.5.0-alpha-1, using {{mvn -f}} 
> under OS X causes the following error to be printed out (similar to 
> MNG-5688), before the command proceeds (AFAICT) without error:
> {noformat}
> > mvn clean package -f releng/repository/pom.xml
> readlink: illegal option -- f
> usage: readlink [-n] [file ...]
> usage: dirname path
> [INFO] Scanning for projects...
> {noformat}
> FWIW, I don’t get this error on a normal {{mvn clean package}} without the 
> {{-f}} parameter.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to