[
https://jira.codehaus.org/browse/WAGON-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=294046#comment-294046
]
Robert Scholte commented on WAGON-369:
--------------------------------------
The success of the tagging could be a false positive. There's a known issue
with SVN (MRELEASE-719) when tagging doesn't break the build if the tag already
exists.
So did the {{mycompany:myartifact:pom:4.4.4}} already exist?
> Maven deploy plugin doesn't follow HTTP 302 redirects
> -----------------------------------------------------
>
> Key: WAGON-369
> URL: https://jira.codehaus.org/browse/WAGON-369
> Project: Maven Wagon
> Issue Type: Bug
> Affects Versions: 2.2
> Reporter: James Baldassari
> Assignee: Olivier Lamy
>
> We have a reverse proxy server sitting in front of our Artifactory
> repository. We've been running with this configuration for over a year with
> no problems until we upgraded to Maven 3.0.4 and maven-deploy-plugin 2.7.
> When deploying an artifact to a repository, if the request returns a 302
> redirect, maven-deploy-plugin 2.7 does not follow the redirect and simply
> fails. It seems like a regression was introduced in maven-deploy-plugin some
> time after v2.5 (the default version used by Maven 3.0.3, which works). The
> full stack trace follows:
> {noformat}
> [INFO] [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on
> project myartifact: Failed to deploy artifacts: Could not transfer artifact
> mycompany:myartifact:pom:4.4.4 from/to maven01
> (http://maven.mycompany.net/libs-releases-local): Failed to transfer file:
> http://maven.mycompany.net/libs-releases-local/mycompany/myartifact/4.4.4/myartifact-4.4.4.pom.
> Return code is: 302, ReasonPhrase:Found. -> [Help 1]
> [INFO] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy
> (default-deploy) on project myartifact: Failed to deploy artifacts: Could not
> transfer artifact mycompany:myartifact:pom:4.4.4 from/to dxmaven01
> (http://maven.mycompany.net/libs-releases-local): Failed to transfer file:
> http://maven.mycompany.net/libs-releases-local/mycompany/myartifact/4.4.4/myartifact-4.4.4.pom.
> Return code is: 302, ReasonPhrase:Found.
> [INFO] at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
> [INFO] at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> [INFO] at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> [INFO] at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> [INFO] at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> [INFO] at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> [INFO] at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> [INFO] at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> [INFO] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> [INFO] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> [INFO] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> [INFO] at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [INFO] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [INFO] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [INFO] at java.lang.reflect.Method.invoke(Method.java:597)
> [INFO] at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> [INFO] at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> [INFO] at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> [INFO] at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> [INFO] Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
> deploy artifacts: Could not transfer artifact mycompany:myartifact:pom:4.4.4
> from/to dxmaven01 (http://maven.mycompany.net/libs-releases-local): Failed to
> transfer file:
> http://maven.mycompany.net/libs-releases-local/mycompany/myartifact/4.4.4/myartifact-4.4.4.pom.
> Return code is: 302, ReasonPhrase:Found.
> [INFO] at
> org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:193)
> [INFO] at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> [INFO] at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> [INFO] ... 19 more
> [INFO] Caused by:
> org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to
> deploy artifacts: Could not transfer artifact mycompany:myartifact:pom:4.4.4
> from/to dxmaven01 (http://maven.mycompany.net/libs-releases-local): Failed to
> transfer file:
> http://maven.mycompany.net/libs-releases-local/mycompany/myartifact/4.4.4/myartifact-4.4.4.pom.
> Return code is: 302, ReasonPhrase:Found.
> [INFO] at
> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141)
> [INFO] at
> org.apache.maven.plugin.deploy.AbstractDeployMojo.deploy(AbstractDeployMojo.java:167)
> [INFO] at
> org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:149)
> [INFO] ... 21 more
> [INFO] Caused by: org.sonatype.aether.deployment.DeploymentException: Failed
> to deploy artifacts: Could not transfer artifact
> mycompany:myartifact:pom:4.4.4 from/to dxmaven01
> (http://maven.mycompany.net/libs-releases-local): Failed to transfer file:
> http://maven.mycompany.net/libs-releases-local/mycompany/myartifact/4.4.4/myartifact-4.4.4.pom.
> Return code is: 302, ReasonPhrase:Found.
> [INFO] at
> org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:280)
> [INFO] at
> org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:211)
> [INFO] at
> org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:443)
> [INFO] at
> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137)
> [INFO] ... 23 more
> [INFO] Caused by: org.sonatype.aether.transfer.ArtifactTransferException:
> Could not transfer artifact mycompany:myartifact:pom:4.4.4 from/to dxmaven01
> (http://maven.mycompany.net/libs-releases-local): Failed to transfer file:
> http://maven.mycompany.net/libs-releases-local/mycompany/myartifact/4.4.4/myartifact-4.4.4.pom.
> Return code is: 302, ReasonPhrase:Found.
> [INFO] at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:951)
> [INFO] at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:941)
> [INFO] at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:837)
> [INFO] at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:467)
> [INFO] at
> org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:274)
> [INFO] ... 26 more
> [INFO] Caused by: org.apache.maven.wagon.TransferFailedException: Failed to
> transfer file:
> http://maven.mycompany.net/libs-releases-local/mycompany/myartifact/4.4.4/myartifact-4.4.4.pom.
> Return code is: 302, ReasonPhrase:Found.
> [INFO] at
> org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:562)
> [INFO] at
> org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:471)
> [INFO] at
> org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:451)
> [INFO] at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:811)
> [INFO] ... 28 more
> [INFO] [ERROR]
> [INFO] [ERROR]
> [INFO] [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [INFO] [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira