[MWRAPPER-147] mvnw.cmd fails to launch maven if username contains space by sebthom · Pull Request #152 · apache/maven-wrapper (original) (raw)

@sebthom changed the title[MWRAPPER-146] mvnw.cmd fails to launch maven if username contains space [MWRAPPER-147] mvnw.cmd fails to launch maven if username contains space

Sep 4, 2024

@sebthom

slachiewicz

ps10xgit pushed a commit to ps10xgit/generator-jhipster that referenced this pull request

Feb 8, 2025

ps10xgit added a commit to ps10xgit/generator-jhipster that referenced this pull request

Feb 8, 2025

@ps10xgit

ps10xgit pushed a commit to ps10xgit/generator-jhipster that referenced this pull request

Feb 8, 2025

mraible pushed a commit to jhipster/generator-jhipster that referenced this pull request

Feb 8, 2025

@ps10xgit

fix could not perform Maven update when the Windows user name contains space. This is based on a fix for maven-wrapper, see apache/maven-wrapper#152

Fix #28585

Co-authored-by: objectsource contact@objectsource.de

officialasishkumar added a commit to officialasishkumar/keycloak that referenced this pull request

Apr 4, 2026

@officialasishkumar

Quote the Maven command path variable in mvnw.cmd to prevent Windows cmd.exe from splitting the path at spaces. Without quotes, users with spaces in their home directory path (e.g., C:\Users\John Doe) get "is not recognized as an internal or external command" errors.

This applies the same fix that was merged upstream in apache/maven-wrapper 3.3.3 (apache/maven-wrapper#152).

Closes keycloak#47499

Signed-off-by: Asish Kumar officialasishkumar@gmail.com

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})