org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project markdownpapers-parent: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504

Sonatype JIRA | Larry Ruiz | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Unable to deploy to staging, return code 504 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project markdownpapers-parent: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project markdownpapers-parent: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:189) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:148) ... 21 more Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:284) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:215) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:480) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137) ... 22 more Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:949) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.flush(WagonRepositoryConnector.java:864) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:466) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:278) ... 25 more Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:205) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:825) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:465) ... 26 more

    Sonatype JIRA | 6 years ago | Larry Ruiz
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project markdownpapers-parent: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504
  2. 0

    Unable to deploy to staging, return code 504 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project markdownpapers-parent: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project markdownpapers-parent: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:189) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:148) ... 21 more Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:284) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:215) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:480) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137) ... 22 more Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:949) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.flush(WagonRepositoryConnector.java:864) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:466) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:278) ... 25 more Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:205) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:825) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:465) ... 26 more

    Sonatype JIRA | 6 years ago | Larry Ruiz
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project markdownpapers-parent: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504
  3. 0

    Migration to Maven 3.0.1 - Deploy fails with Error: 500 only for top most maven-metadata.xml

    Stack Overflow | 6 years ago | Vijay Ratnagiri
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project ThirdPartyDeploymentProject: Failed to deploy metadata: Could not transfer metadata com.***.deployment:ThirdPartyDeploymentProject:0.0.1-SNAPSHOT/maven-metadata.xml from/to deploymentRepoSnapshot (http://mvn.***.com:8080/artifactory/***-project-assets): Failed to transfer file: http://mvn.***.com:8080/artifactory/***-project-assets/com/***/deployment/ThirdPartyDeploymentProject/0.0.1-SNAPSHOT/maven-metadata.xml. Return code is: 500
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I am unable to deploy a snapshot artifact to Nexus Repository. I keep getting return code 400... Uploading: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.pom 4 KB ERROR: Failed to deploy artifacts: Could not transfer artifact com.tendrilinc.mockoce:MockOCE:jar:1.0.4 from/to snapshots (http://172.16.65.128:8081/nexus/content/repositories/snapshots/): Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400 org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact com.tendrilinc.mockoce:MockOCE:jar:1.0.4 from/to snapshots (http://172.16.65.128:8081/nexus/content/repositories/snapshots/): Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400 at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:189) at hudson.maven.RedeployPublisher.perform(RedeployPublisher.java:152) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657) at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:958) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604) at hudson.model.Run.run(Run.java:1401) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:479) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact com.tendrilinc.mockoce:MockOCE:jar:1.0.4 from/to snapshots (http://172.16.65.128:8081/nexus/content/repositories/snapshots/): Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400 at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:284) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:215) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:480) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137) ... 11 more Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact com.tendrilinc.mockoce:MockOCE:jar:1.0.4 from/to snapshots (http://172.16.65.128:8081/nexus/content/repositories/snapshots/): Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400 at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:949) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.flush(WagonRepositoryConnector.java:864) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:466) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:278) ... 14 more Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400 at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:205) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:825) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:465) ... 15 more [INFO] Deployment failed after 1 sec Build step 'Deploy artifacts to Maven repository' changed build result to FAILURE Finished: FAILURE

    Sonatype JIRA | 6 years ago | Rene Molina
    org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact com.tendrilinc.mockoce:MockOCE:jar:1.0.4 from/to snapshots (http://172.16.65.128:8081/nexus/content/repositories/snapshots/): Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400
  6. 0

    I am unable to deploy a snapshot artifact to Nexus Repository. I keep getting return code 400... Uploading: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.pom 4 KB ERROR: Failed to deploy artifacts: Could not transfer artifact com.tendrilinc.mockoce:MockOCE:jar:1.0.4 from/to snapshots (http://172.16.65.128:8081/nexus/content/repositories/snapshots/): Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400 org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact com.tendrilinc.mockoce:MockOCE:jar:1.0.4 from/to snapshots (http://172.16.65.128:8081/nexus/content/repositories/snapshots/): Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400 at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:189) at hudson.maven.RedeployPublisher.perform(RedeployPublisher.java:152) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657) at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:958) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604) at hudson.model.Run.run(Run.java:1401) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:479) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact com.tendrilinc.mockoce:MockOCE:jar:1.0.4 from/to snapshots (http://172.16.65.128:8081/nexus/content/repositories/snapshots/): Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400 at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:284) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:215) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:480) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137) ... 11 more Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact com.tendrilinc.mockoce:MockOCE:jar:1.0.4 from/to snapshots (http://172.16.65.128:8081/nexus/content/repositories/snapshots/): Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400 at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:949) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.flush(WagonRepositoryConnector.java:864) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:466) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:278) ... 14 more Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400 at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:205) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:825) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:465) ... 15 more [INFO] Deployment failed after 1 sec Build step 'Deploy artifacts to Maven repository' changed build result to FAILURE Finished: FAILURE

    Sonatype JIRA | 6 years ago | Rene Molina
    org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact com.tendrilinc.mockoce:MockOCE:jar:1.0.4 from/to snapshots (http://172.16.65.128:8081/nexus/content/repositories/snapshots/): Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.maven.wagon.TransferFailedException

      Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504

      at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer()
    2. Maven
      StreamWagon.put
      1. org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:205)
      2. org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413)
      3. org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392)
      4. org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365)
      5. org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163)
      5 frames
    3. Aether :: Connector :: Wagon
      WagonRepositoryConnector.put
      1. org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:825)
      2. org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:465)
      2 frames
    4. Aether :: Implementation
      DefaultRepositorySystem.deploy
      1. org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:278)
      2. org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:215)
      3. org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:480)
      3 frames
    5. Maven
      DefaultArtifactDeployer.deploy
      1. org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137)
      1 frame
    6. org.apache.maven
      DeployMojo.execute
      1. org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:148)
      1 frame
    7. Maven Plugin
      DefaultBuildPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
      1 frame
    8. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
      2. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      4. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      6. org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      7. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
      9. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      9 frames
    9. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
      2. org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
      3. org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
      3 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    11. Plexus
      Launcher.main
      1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
      2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
      3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
      4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      4 frames