[ 
https://issues.apache.org/jira/browse/MNG-6128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov updated MNG-6128:
--------------------------------
    Labels: AS/400 IBM-i close-pending iseries  (was: AS/400 IBM-i iseries)

> JAVA_HOME resolution not working on IBM i under PASE
> ----------------------------------------------------
>
>                 Key: MNG-6128
>                 URL: https://issues.apache.org/jira/browse/MNG-6128
>             Project: Maven
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 3.3.9
>            Reporter: Tim
>            Priority: Minor
>              Labels: AS/400, IBM-i, close-pending, iseries
>
> Running the "mvn" command on an IBM i (aka AS/400, iseries or system i) 
> machine in the PASE (UNIX Bourne-like shell) environment without having first 
> set JAVA_HOME results in the following error:
> {code}
> 001-0050 Syntaxfehler bei Zeile 144: Token "!" nicht erwartet. 
> {code}
> (Syntax failure on line 144: Token ! unexpected)
> I was able to prevent the error by changing this line in the mvn shell script:
> {code}  if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ 
> ]*\)'`" = "no" ]; then{code}
> to
> {code}  if [ -n "$javaExecutable" ] && ["`expr \"$javaExecutable\" : '\([^ 
> ]*\)'`" != "no" ]; then{code}
> The automatic JAVA_HOME resolution fails on IBM i anyway due to the specific 
> location of the JVM on this platform, I could probably suggest a way to fix 
> it if anyone's interested.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to