Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-12277

Maven deploys failing after upgrade

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • maven-plugin
    • None
    • Jenkins 1.440 and higher (after upgrade from 1.428)

      After upgrading jenkins from 1.428 to 1.440 maven deploys fail with the error below. This problem still exists after upgrading to 1.446.
      The redirect is correct, the failing obviously not. Deploying from the maven commandline (same settings) works without problems.

      [INFO] Deployment in http://xxxx (id=xxxx,uniqueVersion=false)
      Deploying the main artifact xxx-0.3-SNAPSHOT.jar
      ERROR: Error deploying artifact: Failed to transfer file: http://xxx/xxx-0.3-SNAPSHOT.jar. Return code is: 301, ReasonPhrase:Moved Permanently.
      org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error deploying artifact: Failed to transfer file: http://xxx/xxx-0.3-SNAPSHOT.jar. Return code is: 301, ReasonPhrase:Moved Permanently.
      at hudson.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:175)
      at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:182)
      at hudson.maven.RedeployPublisher.perform(RedeployPublisher.java:158)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:697)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:672)
      at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:1014)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:619)
      at hudson.model.Run.run(Run.java:1429)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:238)
      Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: http://xxx/xxx-0.3-SNAPSHOT.jar. Return code is: 301, ReasonPhrase:Moved Permanently.
      at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:562)
      at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:471)
      at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:451)
      at org.apache.maven.repository.legacy.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:543)
      at org.apache.maven.repository.legacy.DefaultWagonManager.putArtifact(DefaultWagonManager.java:494)
      at hudson.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:160)
      ... 11 more
      [INFO] Deployment failed after 1.9 sec
      Build step 'Deploy artifacts to Maven repository' changed build result to FAILURE

            olamy Olivier Lamy
            martijnb Martijn Baay
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: