Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

mvnw does not parse maven-wrapper.properties file properly on macos

Open
#369 0 comments 0 reactions 0 assignees View on GitHub

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

bug
Affected version

3.9.11

Bug description
  1. I generated the maven wrapper by executing mvn wrapper:wrapper command.
  2. Used the generated wrapper to clean the project using ./mvnw clean command and it worked.
  3. I formatted my code from my IDE and as part of it, the maven-wrapper.properties file 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
  1. Space added before and after the = symbol.
  2. ./mvnw clean does not work now saying cannot 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/maven-wrapper

All issues in apache/maven-wrapper

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.