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

virtual respository does not return cached artifacts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-beta
    • Fix Version/s: 1.0-beta
    • Component/s: None
    • Labels:
      None
    • Environment:
      Server: Linux x86-64 (SLES9), Nexus-1.0.0-beta-1.1
      Client: Maven 1.0.2, Maven 1.1

      Description

      The correct artifact is returned for the first time. Subsequent queries return zero size file.

      Steps to reproduce:

      1. fresh install Nexus; default configuration; empty cache
      2. get a working maven 1.x client and point him to Nexus
        maven.repo.remote=http://mavenrepo:8081/nexus/content/repositories/central-m1
      3. remove selected artifact from local repository
      4. run maven clean to fetch dependencies; Nexus "central" and "central-m1" is populated as expected and correct artifact is returned to the client
      5. remove the same artifact from local repository again
      6. run maven clean

      Expected result:
      The same artifact should be returned again
      Actual result:
      Zero size artifact is returned.

      Maven 1.0.2:

      $ rm ~/.maven/repository/asm/jars/asm-1.5.2.jar*
      $ maven clean
       __  __
      |  \/  |__ _Apache__ ___
      | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
      |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
      
      Attempting to download asm-1.5.2.jar.
      25K downloaded
      BUILD SUCCESSFUL
      Total time: 4 seconds
      Finished at: Tue Apr 08 12:42:18 IST 2008
      
      $ rm ~/.maven/repository/asm/jars/asm-1.5.2.jar*
      $ maven clean
       __  __
      |  \/  |__ _Apache__ ___
      | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
      |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
      
      Attempting to download asm-1.5.2.jar.
      warning: last-modified not specified
      0K downloaded
      BUILD SUCCESSFUL
      Total time: 2 seconds
      Finished at: Tue Apr 08 12:42:26 IST 2008
      
      $
      

      Maven 1.1:

       ~/soft/maven-1.1/bin/maven clean
       __  __
      |  \/  |__ _Apache__ ___
      | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
      |_|  |_\__,_|\_/\___|_||_|  v. 1.1
      
      Trying to get missing dependencies (and updated snapshots) required by ${1}:
      - Attempting to download asm:asm:1.5.2:jar from http://mavenrepo:8081/nexus/content/repositories/central-m1
      0K downloaded
      *** CHECKSUM FAILED - Checksum failed on download: local = 'd41d8cd98f00b204e9800998ecf8427e'; remote = '3a0176c6cf665097b2ef93c7ffefde02' - RETRYING
      -------------------------------------------------------------------------------
      >> The build cannot continue because of the following unsatisfied dependency:
      - asm:asm:1.5.2:jar
      
      -------------------------------------------------------------------------------
      BUILD FAILED
      -------------------------------------------------------------------------------
      Total time   : 1 seconds
      Finished at  : Tuesday, April 8, 2008 12:48:34 PM IST
      Final Memory : 1M/3M
      -------------------------------------------------------------------------------
      

      The checksum of "d41d8cd98f00b204e9800998ecf8427e" correspond to MD5 sum of empty file.

      There are no obvious errors in logs.
      When I try to download the artifact from GUI, "central" works and "central-m1" returns zero-size file.

        Attachments

          Activity

            People

            Assignee:
            cstamas Tamás Cservenák
            Reporter:
            deleted_user Deleted User
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title