[
https://issues.apache.org/jira/browse/MNG-7849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17745021#comment-17745021
]
Tamas Cservenak commented on MNG-7849:
--------------------------------------
If you look, the whole existing {{server/configuration/httpConfiguration}} was
a hack (mapped to Xpp3Dom or PlexusConfiguration or alike) and there is nothing
to validate it, merely Wagon (and ONLY Wagon) was consuming it, buried deeply
in who-knows-where. In general, I consider all this deprecated (when using
Maven 3.9.x+), as:
* this is specific to one transport (Wagon), not even to resolver
* Maven has no idea what this is, it just "carries" data
* the regular (and documented) means to configure resolver is here
https://maven.apache.org/resolver/configuration.html
* with incoming HTTP/2 transports (so even more transports will be added),
Wagon will become the ONLY transport that have it's "own way", while all other
transport will obeys proper resolver config means
Personally, I find it okay (and aligned with intents above) to WARN user, if
he's settings.xml dating pre Maven 3.9.x contains traces of these
configurations. They should simply migrate, that's all.
> Improvement in settings/server configuration for http transport
> ---------------------------------------------------------------
>
> Key: MNG-7849
> URL: https://issues.apache.org/jira/browse/MNG-7849
> Project: Maven
> Issue Type: Improvement
> Reporter: Slawomir Jaranowski
> Priority: Major
>
> When we use configuration like:
> {{server/configuration/httpConfiguration/all/connectionTimeout}} we always
> have a warning:
> {noformat}
> [WARNING] Settings for server serverId uses legacy format
> {noformat}
> Such warning should be more descriptive.
> Even we use {{-Dmaven.resolver.transport=wagon}} warning is still present -
> check if should be
> We can also map {{server/configuration/<method>/usePreemptive}} to new value
> with native transport - many users can use it ... but now don't know that no
> working any more.
>
> We can consider if other internal options which support serverId should be
> mapped in {{server/configuration}}
> We can also consider to extends settings model with transport configuration -
> instead using
> {{configuration}} which can be anything and is not validate.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)