Skip to content

[MWRAPPER-147] mvnw fails on Windows if user name contains whitespace #322

Description

@jira-importer

Sebastian T opened MWRAPPER-147 and commented

Calling mvnw I get:

 

> mvnw
'C:\Users\John' is not recognized as an internal or external command,
operable program or batch file.
Cannot start maven from wrapper

The command fails at line:

@IF NOT "%__MVNW_CMD__%"=="" (%__MVNW_CMD__% %*)

For debugging I changed the mvnw.cmd file and printed out the value of %MVNW_CMD% which is:

C:\Users\John Doe/.m2/wrapper/dists/apache-maven-3.9.9/977a63e90f436cd6ade95b4c0e10c20c/bin/mvn.cmd

Affects: 3.3.2

Issue Links:

  • MWRAPPER-151 Maven Wrapper not handling usernames with spaces on Windows

Remote Links:

1 votes, 3 watchers

Activity

  1. jira-importer commented on Sep 7, 2024

    @jira-importer
    Author

    Sledge Hammer commented

    Sorry, I reported the issue as well ...

     

    This line (around line 43):

     
    @IF NOT "%{}MVNW_CMD{}{}%"=="" (%{}{}MVNW_CMD{}% %*)
     
    Is missing quotes, should be:
     
    ("%{}MVNW_CMD{}%" %*)

  2. jira-importer commented on Sep 7, 2024

    @jira-importer
    Author

    Sebastian T commented

    I already created an PR. See #152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:majorMajor loss of function

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions