apache / apache/maven

[MNG-3525] settings.xml: profiles do not allow defining mirrors

Open
#5,389 24 comments 0 reactions 0 assignees View on GitHub
enhancement priority:major
Dominant language
Java
Stars
5.3k
Forks
3.1k
Avg merge
20h 42m
Merged PRs (30d)
297

Description

**[Paul Gribben](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=paulg)** opened **[MNG-3525](https://issues.apache.org/jira/browse/MNG-3525?redirect=false)** and commented

I use Maven either in my office or outside my office.

At work we have a repository manager thus we have mirror properties in the settings.xml for the whole teams global settings. We also have a defined a number of repositories in our work profile so we can mirror these to different repo's managed by Archiva. Now when I work from home I have to comment out the mirror definitions and activate a home profile which does not define any repos so Maven just goes out to the WWW as normal. So the pain is having to comment out and un-comment the mirror settings every time I go from work to home and visa-versa.

Can we not have the option to add mirrors inside profiles?

---

**Affects:** 2.0.9

**Issue Links:**
- [MNG-4420](https://issues.apache.org/jira/browse/MNG-4420) It should be possible to define your mirrors section inside a profile
(_**"is duplicated by"**_)
- [MNG-5698](https://issues.apache.org/jira/browse/MNG-5698) Declare proxies and mirrors in profiles
(_**"is duplicated by"**_)
- [MNG-5929](https://issues.apache.org/jira/browse/MNG-5929) Allow mirrors to be set through settings.xml profiles
(_**"is duplicated by"**_)

59 votes, 47 watchers

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.