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

MAVENHOME_CONFIG var in mvnlauncher script improperly handles two options at once

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-2, 4.0.0
    • Command Line
    • None

    Description

      This variable sets:

      -MAVENHOME_CONFIG=`echo "-Dclassworlds.conf=${MAVEN_HOME}/bin/m2.conf" "-Dmaven.home=${MAVEN_HOME}"`
      

      We properly quote all other variables to avoid pitfalls like spaces, etc. Unfortunately, Bourne shell does not support arrays to this variable is passed as-is and spaces cannot be escaped. The command fails.
      This variable needs to be replaced with one for ClassWorlds Conf file and Maven home is already present.

      Windows command script properly handles spaces in the variables and passes to the java command.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: