maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Langelage (JIRA)" <>
Subject [jira] (MNG-5658) Syntax error in bin/mvn on Solaris SPARC
Date Thu, 26 Jun 2014 21:15:10 GMT
Frank Langelage created MNG-5658:

             Summary: Syntax error in bin/mvn on Solaris SPARC
                 Key: MNG-5658
             Project: Maven
          Issue Type: Bug
    Affects Versions: 3.2.2
         Environment: Solaris SPARC 10 with Oracle JDK 1.7.0_60
            Reporter: Frank Langelage

The latest addition to bin/mvn breaks mvn running on Solaris.
Syntax error in line 86.
The Bourne shell /bin/sh does not understand this syntax with the brackets.
           if [[ -z "$JAVA_HOME" && -x /usr/libexec/java_home ]] ; then
             # Apple JDKs
             export JAVA_HOME=$(/usr/libexec/java_home)
changing the line with the assignment to
             export JAVA_HOME=/usr/libexec/java_home
like the lines before makes it running again.

This message was sent by Atlassian JIRA

View raw message