Uploaded image for project: 'Community Support - Maven Central'
  1. Community Support - Maven Central
  2. MVNCENTRAL-198

HTTP 502 returned when deploying maven-specs2-plugin

    Details

    • Type: Problem
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Bug
    • Component/s: Bad Metadata
    • Labels:
      None

      Description

      mvn -e deploy for maven-specs2-plugin (exact source available here fails with the following output:

      
      [INFO] [deploy:deploy {execution: default-deploy}]
      [INFO] Retrieving previous build number from oss.sonatype.org
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error retrieving previous build number for artifact 'com.mmakowski:maven-specs2-plugin:maven-plugin': repository metadata for: 'snapshot com.mmakowski:maven-specs2-plugin:0.3.0-SNAPSHOT' could not be retrieved from repository: oss.sonatype.org due to an error: Error transferring file: Server returned HTTP response code: 502 for URL: http://nexus.scala-tools.org/content/repositories/snapshots/com/mmakowski/maven-specs2-plugin/0.3.0-SNAPSHOT/maven-metadata.xml
      
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      org.apache.maven.lifecycle.LifecycleExecutionException: Error retrieving previous build number for artifact 'com.mmakowski:maven-specs2-plugin:maven-plugin': repository metadata for: 'snapshot com.mmakowski:maven-specs2-plugin:0.3.0-SNAPSHOT' could not be retrieved from repository: oss.sonatype.org due to an error: Error transferring file: Server returned HTTP response code: 502 for URL: http://nexus.scala-tools.org/content/repositories/snapshots/com/mmakowski/maven-specs2-plugin/0.3.0-SNAPSHOT/maven-metadata.xml
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
      	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:616)
      	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Error retrieving previous build number for artifact 'com.mmakowski:maven-specs2-plugin:maven-plugin': repository metadata for: 'snapshot com.mmakowski:maven-specs2-plugin:0.3.0-SNAPSHOT' could not be retrieved from repository: oss.sonatype.org due to an error: Error transferring file: Server returned HTTP response code: 502 for URL: http://nexus.scala-tools.org/content/repositories/snapshots/com/mmakowski/maven-specs2-plugin/0.3.0-SNAPSHOT/maven-metadata.xml
      	at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:195)
      	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
      	... 17 more
      Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error retrieving previous build number for artifact 'com.mmakowski:maven-specs2-plugin:maven-plugin': repository metadata for: 'snapshot com.mmakowski:maven-specs2-plugin:0.3.0-SNAPSHOT' could not be retrieved from repository: oss.sonatype.org due to an error: Error transferring file: Server returned HTTP response code: 502 for URL: http://nexus.scala-tools.org/content/repositories/snapshots/com/mmakowski/maven-specs2-plugin/0.3.0-SNAPSHOT/maven-metadata.xml
      	at org.apache.maven.artifact.transform.SnapshotTransformation.transformForDeployment(SnapshotTransformation.java:106)
      	at org.apache.maven.artifact.transform.DefaultArtifactTransformationManager.transformForDeployment(DefaultArtifactTransformationManager.java:74)
      	at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:86)
      	at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:173)
      	... 19 more
      Caused by: org.apache.maven.artifact.repository.metadata.RepositoryMetadataResolutionException: repository metadata for: 'snapshot com.mmakowski:maven-specs2-plugin:0.3.0-SNAPSHOT' could not be retrieved from repository: oss.sonatype.org due to an error: Error transferring file: Server returned HTTP response code: 502 for URL: http://nexus.scala-tools.org/content/repositories/snapshots/com/mmakowski/maven-specs2-plugin/0.3.0-SNAPSHOT/maven-metadata.xml
      	at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:351)
      	at org.apache.maven.artifact.transform.SnapshotTransformation.resolveLatestSnapshotBuildNumber(SnapshotTransformation.java:161)
      	at org.apache.maven.artifact.transform.SnapshotTransformation.transformForDeployment(SnapshotTransformation.java:100)
      	... 22 more
      Caused by: org.apache.maven.wagon.TransferFailedException: Error transferring file: Server returned HTTP response code: 502 for URL: http://nexus.scala-tools.org/content/repositories/snapshots/com/mmakowski/maven-specs2-plugin/0.3.0-SNAPSHOT/maven-metadata.xml
      	at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:143)
      	at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
      	at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
      	at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
      	at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:546)
      	at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadataFromDeploymentRepository(DefaultWagonManager.java:452)
      	at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.getArtifactMetadataFromDeploymentRepository(DefaultRepositoryMetadataManager.java:379)
      	at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:347)
      	... 24 more
      Caused by: java.io.IOException: Server returned HTTP response code: 502 for URL: http://nexus.scala-tools.org/content/repositories/snapshots/com/mmakowski/maven-specs2-plugin/0.3.0-SNAPSHOT/maven-metadata.xml
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
      	at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1458)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1452)
      	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1106)
      	at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:122)
      	... 31 more
      Caused by: java.io.IOException: Server returned HTTP response code: 502 for URL: http://nexus.scala-tools.org/content/repositories/snapshots/com/mmakowski/maven-specs2-plugin/0.3.0-SNAPSHOT/maven-metadata.xml
      	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1403)
      	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:397)
      	at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115)
      	... 31 more
      

        Attachments

          Activity

            People

            • Assignee:
              jorlina Joel Orlina
              Reporter:
              mmakowski Maciek Makowski
              Last Updated By:
              Joel Orlina
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: