Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6469

Upload to Nexus hangs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 3.5.4
    • None
    • None
    • None
    • macOS High Sierra 10.13.6

    Description

      I am able to upload my project to Nexus staging successfully using Maven 3.3.9. But if I switch to maven 3.5.4 to upload the same project the upload will just hang forever during the uploading process. I have to use -X to see the actual stack trace:

       

      [DEBUG] Failed to dispatch transfer event 'PUT PROGRESSED http://oss.sonatype.org/service/local/staging/deploy/maven2/myProject.pom <> /Users/haotianw/workplace/myProject/pom.xml' to org.apache.maven.cli.transfer.ConsoleMavenTransferListener
      java.lang.IllegalArgumentException: progressed file size cannot be greater than size: 6984 > 4936
       at org.apache.commons.lang3.Validate.isTrue (Validate.java:158)
       at org.apache.maven.cli.transfer.AbstractMavenTransferListener$FileSizeFormat.formatProgress (AbstractMavenTransferListener.java:195)
       at org.apache.maven.cli.transfer.ConsoleMavenTransferListener.getStatus (ConsoleMavenTransferListener.java:117)
       at org.apache.maven.cli.transfer.ConsoleMavenTransferListener.transferProgressed (ConsoleMavenTransferListener.java:90)
       at org.eclipse.aether.internal.impl.SafeTransferListener.transferProgressed (SafeTransferListener.java:114)
       at org.eclipse.aether.connector.basic.TransferTransportListener.transportProgressed (TransferTransportListener.java:95)
       at org.eclipse.aether.transport.wagon.WagonTransferListener.transferProgress (WagonTransferListener.java:64)
       at org.apache.maven.wagon.events.TransferEventSupport.fireTransferProgress (TransferEventSupport.java:121)
       at org.apache.maven.wagon.AbstractWagon.fireTransferProgress (AbstractWagon.java:594)
       at org.apache.maven.wagon.providers.http.wagon.shared.AbstractHttpClientWagon.access$100 (AbstractHttpClientWagon.java:96)
       at org.apache.maven.wagon.providers.http.wagon.shared.AbstractHttpClientWagon$RequestEntityImplementation.writeTo (AbstractHttpClientWagon.java:194)
       at org.apache.maven.wagon.providers.http.httpclient.impl.DefaultBHttpClientConnection.sendRequestEntity (DefaultBHttpClientConnection.java:156)
       at org.apache.maven.wagon.providers.http.httpclient.impl.conn.CPoolProxy.sendRequestEntity (CPoolProxy.java:160)
       at org.apache.maven.wagon.providers.http.httpclient.protocol.HttpRequestExecutor.doSendRequest (HttpRequestExecutor.java:238)
       at org.apache.maven.wagon.providers.http.httpclient.protocol.HttpRequestExecutor.execute (HttpRequestExecutor.java:123)
       at org.apache.maven.wagon.providers.http.httpclient.impl.execchain.MainClientExec.execute (MainClientExec.java:272)
       at org.apache.maven.wagon.providers.http.httpclient.impl.execchain.ProtocolExec.execute (ProtocolExec.java:185)
       at org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec.execute (RetryExec.java:89)
       at org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RedirectExec.execute (RedirectExec.java:111)
       at org.apache.maven.wagon.providers.http.httpclient.impl.client.InternalHttpClient.doExecute (InternalHttpClient.java:185)
       at org.apache.maven.wagon.providers.http.httpclient.impl.client.CloseableHttpClient.execute (CloseableHttpClient.java:83)
       at org.apache.maven.wagon.providers.http.wagon.shared.AbstractHttpClientWagon.execute (AbstractHttpClientWagon.java:825)
       at org.apache.maven.wagon.providers.http.wagon.shared.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:587)
       at org.apache.maven.wagon.providers.http.wagon.shared.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:544)
       at org.apache.maven.wagon.providers.http.wagon.shared.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:608)
       at org.apache.maven.wagon.providers.http.wagon.shared.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:544)
       at org.apache.maven.wagon.providers.http.wagon.shared.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:526)
       at org.apache.maven.wagon.providers.http.wagon.shared.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:520)
       at org.apache.maven.wagon.providers.http.wagon.shared.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:500)
       at org.eclipse.aether.transport.wagon.WagonTransporter$PutTaskRunner.run (WagonTransporter.java:686)
       at org.eclipse.aether.transport.wagon.WagonTransporter.execute (WagonTransporter.java:435)
       at org.eclipse.aether.transport.wagon.WagonTransporter.put (WagonTransporter.java:418)
       at org.eclipse.aether.connector.basic.BasicRepositoryConnector$PutTaskRunner.runTask (BasicRepositoryConnector.java:512)
       at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run (BasicRepositoryConnector.java:360)
       at org.eclipse.aether.connector.basic.BasicRepositoryConnector.put (BasicRepositoryConnector.java:284)
       at org.eclipse.aether.internal.impl.DefaultDeployer.deploy (DefaultDeployer.java:289)
       at org.eclipse.aether.internal.impl.DefaultDeployer.deploy (DefaultDeployer.java:223)
       at org.eclipse.aether.internal.impl.DefaultRepositorySystem.deploy (DefaultRepositorySystem.java:384)
       at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy (DefaultArtifactDeployer.java:142)
       at org.apache.maven.plugin.deploy.AbstractDeployMojo.deploy (AbstractDeployMojo.java:167)
       at org.apache.maven.plugin.deploy.DeployMojo.execute (DeployMojo.java:149)
       at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
       at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
       at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
       at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
       at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
       at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
       at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
       at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
       at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
       at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
       at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
       at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke (Method.java:498)
       at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
       at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
       at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
       at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
      

       

      The file I'm trying to upload is 5KB and I don't know where the number "4936" came from. It looks like a breaking change as 3.3.9 works fine. I read through 3.5.0 CHANGELOG but didn't find any related material. Please advise.

      Attachments

        1. maven_3.5.3.log
          176 kB
          Vadzim Padlozny
        2. maven_3.5.4.log
          250 kB
          Vadzim Padlozny

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              haotian465 Haotian Wu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: