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

maven dependency plugin should use maven 3 dependency resolver, aether

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.4, 2.5
    • None
    • purge-local-repository
    • None
    • mac os x or linux, maven 3.0.4 (maven 3.0.3 does not have the same behaviour, it fails at removing the local artifacts)

    Description

      problem initially described on the maven users mailing list : http://mail-archives.apache.org/mod_mbox/maven-users/201206.mbox/browser

      Given the attached pom, and using maven 3.0.4 (important, it does not work with 3.0.3, it fails at removing the local artifacts)

      1. do a mvn clean install
      2. then do a mvn org.apache.maven.plugins:maven-dependency-plugin:2.4:purge-local-repository -Dverbose=true -DresolutionFuzziness=version

      it will work as designed, removing javax.servlet:servlet-api:jar:2.5 and net.dahanne.gallery:commons-gallery:jar:2.1.0-SNAPSHOT from your local repo, before re downloading them.
      but, the following message is displayed :

      [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5
      [WARNING] Missing POM for net.dahanne.gallery:commons-gallery:jar:2.1.0-SNAPSHOT
      

      It actually means the plugin could not "see" those artifacts in my local repo; it may be related to the fact that dependency plugin does not use aether to resolve the tree.

      Other problems should arise, as mentioned by Stephen Connolly on the mailing list :
      "When I last chatted on this with Benjamin, he left me with the distinct impression that I should not rely on the output of dependency:tree when run on m3 until it has been adapted to query aether's graph more directly"

      The dependency plugin should use the same dependency resolver as maven 3, ie aether.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hboutemy Herve Boutemy
            anthony.dahanne Anthony Dahanne
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment