apache / apache/maven-site

[MNGSITE-495] Clarify merging of repositories/pluginRepositories

Open
#867 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
123
Forks
301
Avg merge
16h 59m
Merged PRs (30d)
32

Description

**[Konrad Windszus](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=kwin)** opened **[MNGSITE-495](https://issues.apache.org/jira/browse/MNGSITE-495?redirect=false)** and commented

According to https://github.com/apache/maven/blob/2a9f39336cec1d8e52d30cc48503d51ed8672536/maven-model-builder/src/main/java/org/apache/maven/model/merge/MavenModelMerger.java#L263 repositories from child poms overwrite repositories with the same id from the parent pom completely (instead of merging them per id). As this is unexpected and different from plugin execution ids it should be clarified in https://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Project_Inheritance

---
No further details from [MNGSITE-495](https://issues.apache.org/jira/browse/MNGSITE-495?redirect=false)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Project Inheritance section at https://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Project_Inheritance and inspect the cited MavenModelMerger.java location for the repository behavior. Clarify how repositories and pluginRepositories with matching IDs are handled during inheritance, then verify that the documentation accurately distinguishes this behavior from plugin execution IDs.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.