Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-832

Cannot invoke maven from path with parentheses on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • maven-invoker-2.2
    • None
    • None
    • Windows 10

    Description

      When M2_HOME is set to a path with parentheses (in this case C:\work\lol(1)\maven), the following command is generated on windows:

      cmd.exe /X /C "C:\work\lol(1)\maven\bin\mvn.cmd -B -e -V compile"
      

      This command fails, saying that C:\work\lol is not a known command

      When a space is added to the path, the path gets escaped, and the command runs successfully.

      It looks like more characters need to be escaped on some platforms

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aek Anton Krylov
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: