Skip to content

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

@jira-importer

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

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