Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5658

Syntax error in bin/mvn on Solaris SPARC

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.2
    • Fix Version/s: 3.2.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      Solaris SPARC 10 with Oracle JDK 1.7.0_60

      Description

      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
      #

      1. Apple JDKs
        #
        export JAVA_HOME=$(/usr/libexec/java_home)
        fi
        ;;
        changing the line with the assignment to
        export JAVA_HOME=/usr/libexec/java_home
        like the lines before makes it running again.

        Attachments

        1. maven_bin_mvn.patch
          0.6 kB
          Frank Langelage

          Issue Links

            Activity

              People

              • Assignee:
                jvanzyl Jason van Zyl
                Reporter:
                langfr Frank Langelage
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: