Howdy,

the "documented ways" are assumed to be as you say: settings.xml
https://maven.apache.org/settings.html

The properties are not recommended as that assumes per JVM
configuration and may cause issues like unexpected behaviour (the
message is simply "be explicit in settings.xml instead...").
For the list of supported properties (this is ASF httpClient specific,
and WHEN ENABLED) are these:
https://javadoc.io/static/org.apache.httpcomponents/httpclient/4.5.14/org/apache/http/impl/client/HttpClientBuilder.html

So
a) "documented way of [maven] configuration is settings.xml"
b) yes, sensing Java System Properties are by default disabled, you
must explicitly enable that if you need it

Thanks
T

On Wed, Aug 28, 2024 at 3:06 AM Timothy Stone <tst...@petmystone.com> wrote:
>
> Devs,
>
> Reaching out here as a contributor to To Be Continuous's Maven CI/CD
> templates.
>
> An issue was opened more than a year ago about the changes in Maven
> 3.9.x and the "configuration of proxy settings via System Properties"
> being "no longer supported."
>
> See https://gitlab.com/to-be-continuous/maven/-/issues/39
>
> In the user list, something adjacent was raised, and I think there is
> something about the documentation that is creating confusion.
>
> Specifically, `aether.transport.apache.useSystemProperties' suggests
> that a) using `http.proxy` JVM settings is no longer supported, or b)
> not recommended over the "documented ways of configuration":
>
> > If enabled, underlying Apache HttpClient will use system properties as well 
> > to configure itself (typically used to set up HTTP Proxy via Java system 
> > properties). See HttpClientBuilder for used properties. This mode is not 
> > recommended, better use documented ways of configuration instead.
>
> But the "documented ways of configuration" are then just assumed to be
> known by the reader.
>
> So a) what are the "documented ways of configuration"? or b) are
> `http.proxy' settings indeed disabled in "auto"/"native" mode or is this
> all just a misreading of the documentation and the assumption here is
> settings:proxies configuration.
>
> Thanks!
> Tim
>
> --
> Timothy Stone
> =============
> Some call me ... Tim.
> Husband, Father, Blogger, OSS, Wargamer, Home Brewer, and D&D
> Find me on GitLab | GitHub | Linked In | MeWe | GnuPG
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to