apache / apache/maven

[MNG-8476] discard "m2", use new repository directory name

Open
#10,742 1 comment 0 reactions 0 assignees View on GitHub
enhancement priority:major
Dominant language
Java
Stars
5.3k
Forks
3.1k
Avg merge
21h 11m
Merged PRs (30d)
312

Description

**[Huang Xiao](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER305980)** opened **[MNG-8476](https://issues.apache.org/jira/browse/MNG-8476?redirect=false)** and commented

The ".m2" directory is located in the user's home directory:
* Windows: C:\Users\\.m2
* macOS/Linux: /Users/\/.m2 or /home/\/.m2

  !image-2025-01-02-11-12-35-434.png!

Maven 4.0 is about to be released ! It's time to discard ".m2" and use a new name, such as "maven".

 

The current mainstream version is maven3, and the use of "m2" is somewhat ambiguous. If the full name can be used in maven4 version, it will not only clearly express the meaning of the directory, but also have a better comparison with competitors (such as "gradle").

---

**Attachments:**
- [image-2025-01-02-11-12-35-434.png](https://issues.apache.org/jira/secure/attachment/13073735/image-2025-01-02-11-12-35-434.png) (_32.42 kB_)

1 votes, 3 watchers

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by locating Maven 4's handling of the user-home .m2 directory and the repository path, then trace all related documentation and compatibility behavior. Done means the new directory name is used consistently without leaving the requested repository behavior undefined.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.