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

exclusion of transitive dependency is too dominant

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.4
    • None
    • Dependencies
    • None

    Description

      Please consider the following structure: I've got a module M that has got the dependencies D1 and D2. Both D1 and D2 depend on a transitive dependency T.

      I have excluded T from D1 per <exclusion> on the M POM in the dependency to D1.

      Now, one would expect that T is still pulled into M, because there is no exclusion on the D2 path. But this is not the case, "mvn site" on M is missing T (in the dependency report), and it is missing from the classpath, too. However "mvn eclipse:eclipse" on M does the job right: T is listed.

      Attachments

        1. mng2326.zip
          3 kB
          Joerg Schaible

        Issue Links

          Activity

            People

              carlos Carlos Sanchez Gonzalez
              goonie Andreas Schildbach
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: