Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-347

purging local repository leades to invalid repository meta data

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Auto Closed
    • 2.3, 2.4
    • None
    • purge-local-repository
    • None
    • Reproducable with Maven 3.0.4 and 2.2.1.
      Tested on OpenSuse Linux 12.1

    Description

      After using the dependency:purge-local-repository goal, purged artifacts are no longer downloaded from repository manager.

      To reproduce do the following:

      • extract the attached multi-module project. It consists of a parent, artifact1 and artifac2. artifact1 has a dependency to artifact2.
      • adapt the <distributionManagement> so you can deploy to a repository manager
      • cd demo
      • mvn deploy
      • cd artifact1/
      • mvn maven-dependency-plugin:purge-local-repository -DreResolve=false
      • mvn validate

      The result of the last "mvn validate" is like this:

      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building artifact1 1.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 0.158s
      [INFO] Finished at: Fri Mar 02 14:58:48 CET 2012
      [INFO] Final Memory: 2M/118M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal on project artifact1: Could not resolve dependencies for project at.co.xss.mh.demo:artifact1:jar:1.0-SNAPSHOT: Could not find artifact at.co.xss.mh.demo:artifact2:jar:1.0-SNAPSHOT -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

      The missing artifact IS available in the remote repository!

      Attachments

        1. demo.tgz
          2 kB
          Martin Höller

        Issue Links

          Activity

            People

              Unassigned Unassigned
              matinh Martin Höller
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: