[
https://issues.apache.org/jira/browse/MNG-7739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17699990#comment-17699990
]
Tamas Cservenak commented on MNG-7739:
--------------------------------------
Maven 3.9.0 switched from legacy Wagon transport to Resolver transport-http,
see more here
[https://maven.apache.org/guides/mini/guide-resolver-transport.html]
In short, given legacy Wagon used Plexus XML in server element of settings.xml,
while resolver official configuration mode is this
[https://maven.apache.org/resolver/configuration.html] the two are really not
compatible.
If you want "clean transition" between 3.8.x and 3.9.x then stick with Wagon as
in first doco explained, use {{-Dmaven.resolver.transport=wagon}} and both
3.8.x and 3.9.x will use Wagon for transport.
> server timeout config in settings.xml is incompatible between 3.8.7 and 3.9.0
> -----------------------------------------------------------------------------
>
> Key: MNG-7739
> URL: https://issues.apache.org/jira/browse/MNG-7739
> Project: Maven
> Issue Type: Bug
> Components: Settings
> Affects Versions: 3.8.7, 3.9.0
> Reporter: James Z.M. Gao
> Priority: Major
>
> resolver in 3.9.0 uses different server configuration for connection timeout
> with wagon in 3.8.7. Now it is not possible to write a correct server
> settings working and clean for both maven versions.
>
> New method with dom path server/configuration/connectTimeout:
> * 3.8.7: exception: Cannot find 'requestTimeout' in class
> org.apache.maven.wagon.providers.http.HttpWagon$__sisu20
> * 3.9.0: works as expected
> Old method with dom path
> server/configuration/httpConfiguration/all/connectionTimeout:
> * 3.8.7: works as expected
> * 3.9.0: works, but warns legacy format
> Old method with dom path
> server/configuration/httpConfiguration/get/connectionTimeout:
> * 3.8.7: works as expected
> * 3.9.0: doesn't work, the configs are ignored
--
This message was sent by Atlassian Jira
(v8.20.10#820010)