[MWRAPPER-151] Maven Wrapper not handling usernames with spaces on Windows
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- powershell
- Domain
- build-system
Research direction
Start by generating the Maven wrapper on Windows with a username containing spaces, then inspect the wrapper command around the mentioned Write-Output pattern. Run the newly created Maven wrapper with mvnw --version; done means it starts Maven successfully and no longer treats the spaced user path as a command.
Written by the indexing model from the issue text.
Description
Jack Green opened MWRAPPER-151 and commented
When Maven wrapper is run on a username with spaces on Windows, it doesn’t work and an error is produced:
'C:\Users\Test' is not recognized as an internal or external command, operable program or batch file.
Cannot start maven from wrapper
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.
Affects: 3.3.2
Issue Links:
- MWRAPPER-147 mvnw fails on Windows if user name contains whitespace
- Dominant language
- Java
- Stars
- 254
- Forks
- 78
- Avg merge
- 9h 4m
- Merged PRs (30d)
- 5
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/maven-wrapper
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
apache/maven-wrapper#442 ·
-
priority:trivial
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
apache/maven-wrapper#280 · 1 comment · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
apache/maven-wrapper#441 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
apache/maven-wrapper#425 · 1 comment · 4 reactions ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
apache/maven-wrapper#424 ·
All issues in apache/maven-wrapper
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
1.0.0-alpha2 Type/Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wso2/dpdp-accelerator#272 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Difficulty 2/5 1-3 hours Newbie friendliness 65/100