[ 
https://issues.apache.org/jira/browse/MNG-7739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17700050#comment-17700050
 ] 

Tamas Cservenak edited comment on MNG-7739 at 3/14/23 9:41 AM:
---------------------------------------------------------------

In short, I'd recommend:
 * for users on Maven 3.9.x but "in limbo" re transport: use "new" mode
 * for users "in limbo" between Maven 3.8.x and 3.9.x (meaning, SAME project 
being built with both versions) add {{.mvn/maven.config}} with line 
{{maven.resolver.transport=wagon}} for now.
 * for users "transitioning" from 3.8.x to 3.9.x but being consistent for 
per-project used Maven version (ie. by using mvn wrapper), I suggest adding  
{{.mvn/maven.config}} with line {{maven.resolver.transport=wagon}} when wrapper 
moved to 3.9.x but settings is not upgraded. When settings upgraded (Maven AND 
settings), remove this line. So to say, keep the maven.config "in sync" with 
wrapper, and once wrapper upgraded, upgrade config as well and switch to native 
transport.


was (Author: cstamas):
In short, I'd recommend:
 * for users on Maven 3.9.x but "in limbo" re transport: use "new" mode
 * for users "in limbo" between Maven 3.8.x and 3.9.x (meaning, SAME project 
being built with both versions) add {{.mvn/maven.config}} with line 
{{maven.resolver.transport=wagon}} for now.
 * for users "transitioning" from 3.8.x to 3.9.x but being consistent for 
per-project used Maven version (ie. by using mvn wrapper), I suggest adding  
{{.mvn/maven.config}} with line {{maven.resolver.transport=wagon}} when wrapper 
at 3.8.x and when upgraded (Maven AND settings), remove this line. So to say, 
keep the maven.config "in sync" with wrapper, and once wrapper upgraded, 
upgrade config as well and switch to native 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.9.0, 4.0.0-alpha-3, 4.0.0-alpha-4
>            Reporter: James Z.M. Gao
>            Assignee: Tamas Cservenak
>            Priority: Blocker
>             Fix For: 4.0.0, 4.0.0-alpha-5, 3.9.1
>
>
> 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)

Reply via email to