apache / apache/maven

[MNG-6310] settings.xml allow proxy activation by expression

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

Description

**[Brett Randall](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=brett_s_r)** opened **[MNG-6310](https://issues.apache.org/jira/browse/MNG-6310?redirect=false)** and commented

Currently it appears that `settings.xml` proxies can only be activated via a boolean `active` element, which does not appear to be evaluated, so you cannot use a property (e.g. set by a profile), nor a system or environment property.

This comes up a lot on discussions from developers trying to automate whether Maven's proxies are enabled or not, based on a system or environment property etc.

Possible solutions:
* Change the model for (generate) `Proxy.active` allowing an expression to then be evaluated.
* Copy `profiles` approach and add an `` element, but this requires a settings schema rev.

---

**Affects:** 3.5.2

0 votes, 5 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.