Skip to content

[MSHARED-832] Cannot invoke maven from path with parentheses on Windows #127

Description

@jira-importer

Anton Krylov opened MSHARED-832 and commented

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


Affects: maven-invoker-2.2

Issue Links:

1 votes, 3 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions