maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zk W <mpc8...@gmail.com>
Subject 409 Error Code with deploy-file
Date Thu, 21 May 2015 03:55:17 GMT
Hi All

We tried

mvn -X deploy:deploy-file -Dfile=ayyy.zip -DgeneratePom=true
-DrepositoryId=snapshots -DgroupId=gxxx -DartifactId=ayyy -Dversion=1.1.1.1
-Dpackaging=zip -Durl=http://abc.com:8080/artifactory/snapshot-local


but we got error when trying to upload the artifact to Artifactory.
We tried different options and none worked
1)  Add <nonProxyHosts> in settings.xml
2) In Artifactory snapshot-local repo, set Suppress POM Consistency Checks
3) In Artifactory, set Checksum policy to Trust Server Generated Checksum

Is there something to do with Wagon file that we need to download ?

We are using Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)

Thanks for your help.


Error log below:

[INFO] Final Memory: 35M/227M

[INFO]
------------------------------------------------------------------------

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy-file (default-cli)
on project standalone-pom: Failed to deploy artifacts: Could not transfer
artifact gxxx:ayyy:zip:1.1.1.1 from/to snapshots (
http://abc.com:8080/artifactory/snapshot-local): Failed to transfer file:
http://abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/1.1.1.1/ayyy-1.1.1.1.zip.
Return code is: 409 -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy-file
(default-cli) on project standalone-pom: Failed to deploy artifacts: Could
not transfer artifact gxxx:ayyy:zip:1.1.1.1 from/to snapshots (
http://abc.com:8080/artifactory/snapshot-local): Failed to transfer file:
http://abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/1.1.1.1/ayyy-1.1.1.1.zip.
Return code is: 409

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 gxxx:ayyy:zip:1.1.1.1 from/to
snapshots (http://abc.com:8080/artifactory/snapshot-local): Failed to
transfer file:
http://abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/1.1.1.1/ayyy-1.1.1.1.zip.
Return code is: 409

at
org.apache.maven.plugin.deploy.DeployFileMojo.execute(DeployFileMojo.java:240)

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
gxxx:ayyy:zip:1.1.1.1 from/to snapshots (
http://abc.com:8080/artifactory/snapshot-local): Failed to transfer file:
http://abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/1.1.1.1/ayyy-1.1.1.1.zip.
Return code is: 409

at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141)

at
org.apache.maven.plugin.deploy.DeployFileMojo.execute(DeployFileMojo.java:236)

... 21 more

Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to
deploy artifacts: Could not transfer artifact gxxx:ayyy:zip:1.1.1.1 from/to
snapshots (http://abc.com:8080/artifactory/snapshot-local): Failed to
transfer file:
http://abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/1.1.1.1/ayyy-1.1.1.1.zip.
Return code is: 409

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 gxxx:ayyy:zip:1.1.1.1 from/to snapshots (
http://abc.com:8080/artifactory/snapshot-local): Failed to transfer file:
http://abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/1.1.1.1/ayyy-1.1.1.1.zip.
Return code is: 409

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:
http://abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/1.1.1.1/ayyy-1.1.1.1.zip.
Return code is: 409

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

[ERROR]

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message