[MNG-5698] Declare proxies and mirrors in profiles
- Dominant language
- Java
- Stars
- 5.3k
- Forks
- 3.1k
- Avg merge
- 20h 42m
- Merged PRs (30d)
- 297
Description
**[Edwin Wiles](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=wilesed)** opened **[MNG-5698](https://issues.apache.org/jira/browse/MNG-5698?redirect=false)** and commented
There appear to be 140 issues regarding proxy configuration. None of them appear to have been adequately dealt with.
There should be a solution, internal to Maven, preferably in the settings.xml file, that allows the user to either automatically, or at worst with a -P profile argument, to switch between proxies and mirrors.
It seems the easiest way to achieve this is to allow proxies and mirrors into profiles, the same as properties and repositories are now.
USE CASE: I am presently dealing with an environment where company A has a mirror, proxy, and VPN access; company B has a mirror, proxy, and VPN access; and the user may be working from either company's office, either company's VPN, or from home without using either company's resources.
Just making proxies and mirrors acceptable in profiles would go a VERY long way to solving this problem.
---
**Issue Links:**
- [MNG-3525](https://issues.apache.org/jira/browse/MNG-3525) settings.xml: profiles do not allow defining mirrors
(_**"duplicates"**_)
- [MNG-6963](https://issues.apache.org/jira/browse/MNG-6963) mirrors and proxies options via profiles
(_**"is duplicated by"**_)
- [MNG-6586](https://issues.apache.org/jira/browse/MNG-6586) Allow proxy activation based on profile
5 votes, 6 watchers
Contributor guide
Assessment
This issue has not been assessed yet.