Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-2695

Deploying tar.gz files returns 400 Error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.3.6
    • Fix Version/s: 1.4.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      Nexus Pro running on Linux 64-bit

      Description

      I need to deploy this small file to nexus: SPM-29.0.0-20090921.153522-2.kit.tar.gz

      mvn org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy-file -Durl=http://mavencentral.it.att.com:8084/nexus/content/repositories/csi-snapshots -DrepositoryId=csiRepo -Dfile=SPM-29.0.0-20090917.172001-1.kit.tar.gz -DgroupId=csi-kits -DartifactId=SPM -Dversion=29.0.0-SNAPSHOT -Dpackaging=kit.tar.gz

      But I get this:
      [[INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Maven Default Project
      [INFO] task-segment: [org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy-file] (aggregator-style)
      [INFO] ------------------------------------------------------------------------
      [INFO] [deploy:deploy-file

      {execution: default-cli}

      ]
      [INFO] Retrieving previous build number from csiRepo
      Uploading: http://mavencentral.it.att.com:8084/nexus/content/repositories/csi-snapshots/csi-kits/SPM/29.0.0-SNAPSHOT/SPM-29.0.0-20090921.160703-3.kit.tar.gz
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error deploying artifact: Failed to transfer file: http://mavencentral.it.att.com:8084/nexus/content/repositories/csi-snapshots/csi-kits/SPM/29.0.0-SNAPSHOT/SPM-29.0.0-20090921.160703-3.kit.tar.gz. Return code is: 400

      But it works when I do this:

      mvn org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy-file -Durl=http://mavencentral.it.att.com:8084/nexus/content/repositories/csi-snapshots -DrepositoryId=csiRepo -Dfile=deploy.jar -DgroupId=csi-kits -DartifactId=SPM -Dversion=29.0.0-SNAPSHOT -Dpackaging=kit.tar.gz
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Maven Default Project
      [INFO] task-segment: [org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy-file] (aggregator-style)
      [INFO] ------------------------------------------------------------------------
      [INFO] [deploy:deploy-file

      {execution: default-cli}

      ]
      [INFO] Retrieving previous build number from csiRepo
      Uploading: http://mavencentral.it.att.com:8084/nexus/content/repositories/csi-snapshots/csi-kits/SPM/29.0.0-SNAPSHOT/SPM-29.0.0-20090921.160751-3.kit.tar.gz
      2K uploaded (SPM-29.0.0-20090921.160751-3.kit.tar.gz)
      [INFO] Uploading project information for SPM 29.0.0-20090921.160751-3
      [INFO] Retrieving previous metadata from csiRepo
      [INFO] Uploading repository metadata for: 'artifact csi-kits:SPM'
      [INFO] Retrieving previous metadata from csiRepo
      [INFO] Uploading repository metadata for: 'snapshot csi-kits:SPM:29.0.0-SNAPSHOT'
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESSFUL
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2 seconds
      [INFO] Finished at: Mon Sep 21 11:07:53 CDT 2009
      [INFO] Final Memory: 5M/543M
      [INFO] ------------------------------------------------------------------------

      But it works when I do this:

        Attachments

          Activity

            People

            • Assignee:
              velo Marvin Herman Froeder
              Reporter:
              att-01 David Hudgins
              Last Updated By:
              Rich Seddon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

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

                Time Tracking

                Estimated:
                Original Estimate - 2h Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2.25h
                2.25h