mvnw does not parse maven-wrapper.properties file properly on macos
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java
- Domain
- build-system
Research direction
Reproduce the issue with .mvn/wrapper/maven-wrapper.properties using spaces around the equals signs, then run ./mvnw clean and trace where the wrapper reads distributionUrl. Done means the formatted properties file is accepted and the clean command works on the reported setup.
Written by the indexing model from the issue text.
Description
Affected version
3.9.11
Bug description
- I generated the maven wrapper by executing
mvn wrapper:wrappercommand. - Used the generated wrapper to clean the project using
./mvnw cleancommand and it worked. - I formatted my code from my IDE and as part of it, the
maven-wrapper.propertiesfile also got formatted like below.
Before formatting:
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip
After formatting:
distributionType = only-script
distributionUrl = https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip
- Space added before and after the
=symbol. ./mvnw cleandoes not work now sayingcannot read distributionUrl property in ./.mvn/wrapper/maven-wrapper.properties
Note:
I use macos 15.5 Sequoia.
I use maven 3.9.11.
I use JDK 21.
- 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
-
certification
Difficulty 1/5 Under an hour Newbie friendliness 80/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Openbug ecr
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Needs: Triage Type: Feature request
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
github/copilot-sdk#2760 ·