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

Dependency excludes apply to every subsequent dependency, not just the one it is declared under.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 2.0.5
    • None
    • None

    Description

      If you specify ANY dependency excludes, all dependencies after that one in the pom will also exclude what you specified. They appear to be cumulative on every dependency in that they bleed over into sibling dependencies.
      It's easy to test if you add an exclusion to a random dependency. This exclusion should exclude a required transitive dependency that is included by a dependency lower in the list. You will find that the dependency lower in the list no longer includes the required dependency because it is using the filter you declared in the other dependency.

      Attachments

        1. MNG-1797-unit-test.patch
          3 kB
          Carlos Sanchez Gonzalez
        2. MNG-1797-maven-project.patch
          1 kB
          David Hawkins
        3. it1020.tgz
          0.9 kB
          Carlos Sanchez Gonzalez
        4. it1019.tgz
          0.8 kB
          Carlos Sanchez Gonzalez

        Issue Links

          Activity

            People

              jdcasey John Dennis Casey
              dhawkins David Hawkins
              Votes:
              11 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: