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

Maven 3.5.2 Command Line mvn.cmd fails on path names containing round bracket "()" chars

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.5.2
    • None
    • Command Line
    • Windows OS

    Description

      If the absolute path name of the -f command line parameter contains round bracket characters "(" or ")", then the command line mvn.cmd fails with "... was unexpected at this time".

      The issue can be easily fixed in mvn.cmd, 3.5.2 for he appropriate echo statements:
      line 120: enclose %FILE_ARGS% by "" -> "%FILE_ARGS%"
      line 129: same for %POM_DIR% and %FILE_ARGS%

      The screenshots attached have been created with env var MAVEN_BATCH_ECHO=on.

      Attachments

        1. mvn.cmd_roundBrackets_1.png
          33 kB
          Markus Hoffrogge
        2. mvn.cmd_roundBrackets_2.png
          31 kB
          Markus Hoffrogge

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              mhoffrog Markus Hoffrogge
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: