maven-users mailing list archives

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


Thanks for responding.

It is unclear why when using file:// syntax for url argument, the upload
messages showed.

But when I tried looking for the artifact in local repo of Artifactory
snapshot-local, it isnt there.


Log below:

[INFO] Scanning for projects...

[INFO]


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

[INFO] Building Maven Stub Project (No POM) 1

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

[INFO]

[INFO] --- maven-deploy-plugin:2.5:deploy-file (default-cli) @
standalone-pom ---

Uploading: file://
abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/1.1.1.1/ayyy-1.1.1.1.zip

Uploaded: file://
abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/1.1.1.1/ayyy-1.1.1.1.zip
(18656 KB at 34166.8 KB/sec)

Uploading: file://
abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/1.1.1.1/ayyy-1.1.1.1.pom

Uploaded: file://
abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/1.1.1.1/ayyy-1.1.1.1.pom
(423 B at 206.5 KB/sec)

Downloading: file://
abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/maven-metadata.xml

Downloaded: file://
abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/maven-metadata.xml (304 B
at 148.4 KB/sec)

Uploading: file://
abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/maven-metadata.xml

Uploaded: file://
abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/maven-metadata.xml (304 B
at 296.9 KB/sec)

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

[INFO] BUILD SUCCESS

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

[INFO] Total time: 1.068s

[INFO] Finished at: Wed May 20 22:58:20 PDT 2015

[INFO] Final Memory: 3M/227M

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

On Wed, May 20, 2015 at 8:59 PM, Olivier Lamy <olamy@apache.org> wrote:

> I think you need to have a look at your repository manager (which looks to
> be artifactory)
> You got 409 http response which means conflict.
> From your parameters I can imagine different reasons (
> -DrepositoryId=snapshots
> -DgroupId=gxxx -DartifactId=ayyy -Dversion=1.1.1.1
> -Dpackaging=zip -Durl=http://abc.com:8080/artifactory/snapshot-local ) :
> * you try deploying a non snapshot version to a snapshot repository
> * you redeploy a non snapshot version (which is usually forbidden and
> definitely a bad idea)
>
> HTH
> Olivier
>
>
>
>
>
> On 21 May 2015 at 13:55, Zk W <mpc8250@gmail.com> wrote:
>
> > 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]
> >
>
>
>
> --
> Olivier Lamy
> http://twitter.com/olamy | http://linkedin.com/in/olamy
>

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