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

Michael Osipov closed MNG-6128.
-------------------------------
    Resolution: Not A Problem

The entire code has been dropped/skimmed, please try [Maven 
3.5.0-SNAPSHOT|https://repository.apache.org/service/local/artifact/maven/redirect?r=snapshots&g=org.apache.maven&a=apache-maven&v=3.5.0-SNAPSHOT&e=tar.gz&c=bin].
 If this issue still persists, reopen.

> 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.15#6346)

Reply via email to