Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4781

Can't deploy to Nexus staging repository

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 3.0-beta-3
    • 3.0-beta-3
    • Deployment
    • None
    • Nexus 1.7.2

    Description

      Trying to deploy to a Nexus staging repository using Aether yields

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy (default-deploy) [...]
      Failed to retrieve remote metadata [...]
      Error transferring file: Server returned HTTP response code: 400 for URL [...]
      

      The issue is caused by the combination of
      a) Aether first trying to fetch the remote metadata (instead of PUTting something first)
      b) Nexus returning a 400 (instead of 404) for the requested metadata

      Attachments

        Activity

          People

            bentmann Benjamin Bentmann
            bentmann Benjamin Bentmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: