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

Over-zealous transitive dependencies during mediation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.0-beta-1
    • 2.0-beta-2
    • None
    • Windows XP, Cygwin

    Description

      The attached zip sets up the following project hierarchy:

      main.war
         projecta
            shared:1.0
               librarya
         projectb
            projectc
               shared:2.0
                  libraryb
      

      From what I understand of dependency mediation shared:2.0 should be chosen in preference to shared:1.0, and hence libraryb should be included instead of librarya. Using the latest m2 the main.war WEB-INF/lib contains:

      projecta
      projectb
      projectc
      shared:2.0
      librarya
      libraryb

      Thus librarya is included when it shouldn't be.

      Attachments

        1. test.zip
          4 kB
          Mark Hobson

        Issue Links

          Activity

            People

              brett Brett Porter
              markh Mark Hobson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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