[ https://issues.apache.org/jira/browse/MNG-7845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17744518#comment-17744518 ]
Tamas Cservenak commented on MNG-7845: -------------------------------------- As first response, please try upgrading to latest (minor) versions of Maven (3.9.3, contains latest resolver 1.9.13, both with a lot of transport related bug fixes), AND upgrade to latest m-deploy-p like 3.1.1. Also check on far end (Nexus "free") what is happening, as Maven pushes as fast as far end can receive... > Slow upload of artifacts to remote repository > --------------------------------------------- > > Key: MNG-7845 > URL: https://issues.apache.org/jira/browse/MNG-7845 > Project: Maven > Issue Type: Bug > Components: Deployment > Affects Versions: 3.9.1 > Reporter: Filip Pitak > Priority: Critical > > After an upgrade of maven from v3.3.9 to v3.9.1 the deployment of artifacts > to a remote repository via _*'mvn deploy'*_ has been substantially slowed > down. Disregarding the time for installing and other steps, the deployment of > artifacts went from +-40seconds to 6minutes. As our projects consists of > multiple modules, the total time of deployment jumped from 20minutes to > 1h20min. For our remote repository we are using Sonatype Nexus RepositoryOSS > 3.56.0-01. > In the newer version maven has switched from Wagon to using "native HTTP", > which caused this issue. > I've solved the problem by calling _*"mvn deploy > -Dmaven.resolver.transport=wagon"*_ and also downgrading the version of > Wagon. Various versions of Wagon had a different result in upload speeds: > > ||Wagon version||Deploy speed|| > |2.7|25 sec.| > |2.10|35 sec| > |3.x.x|4 min.| > > This solution is not viable in the long-run as it requires using an ancient > transport resolver and downgrading the version, which is not future-proof. A > similar solution of speeding up the deployment should be available when using > the default {*}{{maven-resolver-transport-http}} aka _native HTTP_ > transport{*}. Is there an existing implementation, which {*}{{*}}could be > used here? > -- This message was sent by Atlassian Jira (v8.20.10#820010)