Sebastian T created MWRAPPER-147:
------------------------------------

             Summary: mvnw fails on Windows if user name contains whitespace
                 Key: MWRAPPER-147
                 URL: https://issues.apache.org/jira/browse/MWRAPPER-147
             Project: Maven Wrapper
          Issue Type: Bug
          Components: Maven Wrapper Scripts
    Affects Versions: 3.3.2
            Reporter: Sebastian T


Calling mvnw I get:

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


The command fails at line:
{noformat}
@IF NOT "%__MVNW_CMD__%"=="" (%__MVNW_CMD__% %*)
{noformat}


For debugging I changed the mvnw.cmd file and printed out the value of 
%__MVNW_CMD__% which is:
{noformat}
C:\Users\John 
Doe/.m2/wrapper/dists/apache-maven-3.9.9/977a63e90f436cd6ade95b4c0e10c20c/bin/mvn.cmd
{noformat}




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to