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

bin/mvn contains platform specific echo when on Mac OSX and JAVA_VERSION envvar is set

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.1, 3.0, 3.0.1, 3.0.2
    • Fix Version/s: 3.0.3
    • Component/s: Command Line
    • Labels:
      None
    • Flags:
      Patch

      Description

        Darwin*) darwin=true 
                 if [ -z "$JAVA_VERSION" ] ; then
                   JAVA_VERSION="CurrentJDK"
                 else
                   echo "Using Java version: $JAVA_VERSION"
                 fi
                 if [ -z "$JAVA_HOME" ] ; then
                   JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home
                 fi
                 ;;
      

      This makes the output of maven slightly different on a single platform. Looks like left over debug logging that should be removed. Users can sh -x bin/mvn to get the value if they need to see what framework version was selected w/o affecting the general output of the tool.

        Attachments

          Activity

            People

            • Assignee:
              bentmann Benjamin Bentmann
              Reporter:
              jason@planet57.com Jason Dillon
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: