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

Recursive dependencies with exclusive bounds fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.0 (RC)
    • 2.0
    • None

    Description

      ResolutionNode.getDependencyTrail calls artifact.selectVersion(artifact.getSelectedVersion()) even w/o checking artifact.isSelectedVersionKnown().

      It should perhaps have the same handling as DefaultArtifactCollector.recurse(...) which uses retrieveAvailableVersions or getAvailableVersions to then call artifact.getVersionRange().matchVersion(...)

      Example:

      A depends on B which depends on C

      if B depends on C version (1.0,1.1)
      then B resolves the dependencies fine.
      However, if you try to build A, then maven tries to look for C-1.1.jar which is of course outside B's dependency version.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gconaty Garrett Conaty
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: