From e02637993a09669e51d91000ed127776b0af1968 Mon Sep 17 00:00:00 2001 From: sebthom Date: Wed, 4 Sep 2024 22:00:52 +0200 Subject: [PATCH] [MWRAPPER-146] mvnw.cmd fails to launch maven if username contains space --- maven-wrapper-distribution/src/resources/only-mvnw.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maven-wrapper-distribution/src/resources/only-mvnw.cmd b/maven-wrapper-distribution/src/resources/only-mvnw.cmd index d3e39f4..5ed4ad2 100644 --- a/maven-wrapper-distribution/src/resources/only-mvnw.cmd +++ b/maven-wrapper-distribution/src/resources/only-mvnw.cmd @@ -40,7 +40,7 @@ @SET __MVNW_ARG0_NAME__= @SET MVNW_USERNAME= @SET MVNW_PASSWORD= -@IF NOT "%__MVNW_CMD__%"=="" (%__MVNW_CMD__% %*) +@IF NOT "%__MVNW_CMD__%"=="" ("%__MVNW_CMD__%" %*) @echo Cannot start maven from wrapper >&2 && exit /b 1 @GOTO :EOF : end batch / begin powershell #>