[ 
https://issues.apache.org/jira/browse/MWRAPPER-151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jack Green updated MWRAPPER-151:
--------------------------------
    Description: 
When Maven wrapper is run on a username with spaces on Windows, it doesn’t work 
and an error is produced:

 
{code:java}
'C:\Users\Test' is not recognized as an internal or external command, operable 
program or batch file.
Cannot start maven from wrapper {code}
 

 

Reproducer:
 - Have a username with spaces is in it (e.g. {{{}Test User Name{}}})

 - Create Maven wrapper ({{{}mvn wrapper:wrapper{}}})

 - Run the newly created Maven wrapper ({{{}mvnw –version{}}})

 

I _suspect_ this is being caused by the following pattern:

{{Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"}}

 

Where {{$MAVEN_HOME}} contains spaces and is not being quoted correctly.

  was:
When Maven wrapper is run on a username with spaces on Windows, it doesn’t work 
and an error is produced:

 
{code:java}
'C:\Users\Test' is not recognized as an internal or external command, operable 
program or batch file.
Cannot start maven from wrapper {code}
 

 

Reproducer:

- Have a username with spaces is in it (e.g. {{{}Test User Name{}}})

- Create Maven wrapper ({{{}mvn wrapper:wrapper{}}})

- Run the newly created Maven wrapper ({{{}mvnw –version{}}})

 

I _suspect_ this is being caused by the following pattern:

{{Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"}}

 

Where $MAVEN_HOME contains spaces and is not being quoted correctly.


> Maven Wrapper not handling usernames with spaces on Windows
> -----------------------------------------------------------
>
>                 Key: MWRAPPER-151
>                 URL: https://issues.apache.org/jira/browse/MWRAPPER-151
>             Project: Maven Wrapper
>          Issue Type: Bug
>    Affects Versions: 3.3.2
>            Reporter: Jack Green
>            Priority: Major
>
> When Maven wrapper is run on a username with spaces on Windows, it doesn’t 
> work and an error is produced:
>  
> {code:java}
> 'C:\Users\Test' is not recognized as an internal or external command, 
> operable program or batch file.
> Cannot start maven from wrapper {code}
>  
>  
> Reproducer:
>  - Have a username with spaces is in it (e.g. {{{}Test User Name{}}})
>  - Create Maven wrapper ({{{}mvn wrapper:wrapper{}}})
>  - Run the newly created Maven wrapper ({{{}mvnw –version{}}})
>  
> I _suspect_ this is being caused by the following pattern:
> {{Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"}}
>  
> Where {{$MAVEN_HOME}} contains spaces and is not being quoted correctly.



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

Reply via email to