Uploaded image for project: 'Maven Wrapper'
  1. Maven Wrapper
  2. MWRAPPER-147

mvnw fails on Windows if user name contains whitespace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.3.2
    • None
    • Maven Wrapper Scripts
    • None

    Description

      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
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              seb Sebastian T
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: