GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [MSHARED-832] Cannot invoke maven from path with parentheses on Windows · Issue #286 · apache/maven-shared-utils

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

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[MSHARED-832] Cannot invoke maven from path with parentheses on Windows#286
Copy link
Labels
bugSomething isn't workingduplicateThis issue or pull request already exists

Description

@jira-importer
jira-importer
opened on Aug 29, 2019
Issue body actions

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:

  • MSHARED-765 Password not escaped (on windows?)

1 votes, 4 watchers

Activity

  1. jira-importer commented on Feb 3, 2021

    @jira-importer
    jira-importer
    on Feb 3, 2021
    Author
    More actions

    Sylwester Lachiewicz commented

    First, it requires change in shared-utils

  2. jira-importer commented on Sep 27, 2023

    @jira-importer
    jira-importer
    on Sep 27, 2023
    Author
    More actions

    Elliotte Rusty Harold commented

    Problem is likely in Shell.quoteOneItem and can be tested from Shell.getCommandLine which returns quoted arguments

  3. jira-importer commented on Sep 27, 2023

    @jira-importer
    jira-importer
    on Sep 27, 2023
    Author
    More actions

    Elliotte Rusty Harold commented

    I can't immediately put my finger on any reference that explains which characters need to be escaped on Windows command lines and why. Anyone have that handy?

  4. jira-importer commented on Jun 17, 2025

    @jira-importer
    jira-importer
    on Jun 17, 2025
    Author
    More actions

    Matthias Bünger commented

    This project has moved from Jira to GitHub Issues. This issue was migrated to apache/maven-invoker#127. Please visit the GitHub issue to view further activity, add comments, or subscribe to receive notifications.

  5. jira-importer
    added
    bugSomething isn't working
    priority:majorMajor loss of function
    on Jul 3, 2025
  6. slachiewicz
    removed
    priority:majorMajor loss of function
    on Sep 11, 2026
  7. slachiewicz commented on Sep 11, 2026

    @slachiewicz
    slachiewicz
    on Sep 11, 2026
    Member
    More actions

    Closing as a duplicate of #268. Both come from the same place: Shell.quoteOneItem returns its input unchanged and the only quoting trigger is a space, so cmd.exe special characters such as & and ( reach the command line unquoted. The fix belongs in this repo, not in apache/maven-invoker#127 or apache/maven-jarsigner#47, which this comment cross-links so those trackers point back here.

    This comment was created with AI assistance.

  8. slachiewicz
    closed this as not plannedon Sep 11, 2026
  9. slachiewicz
    added
    duplicateThis issue or pull request already exists
    on Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.