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

Dependency management overrides are not transitive and should be considered an anti-pattern.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • None
    • 4.x / Backlog
    • None
    • None

    Description

      Overriding the dependency management in a module's <dependencies> section, the overridden value will not be preserved transitively. It makes no sense to be able to override the dependency management in a module if that is only effective in that module and nowhere else. Overriding the dependency management from inside a <dependencies> element should be considered an anti-pattern. Maven should provide a warning when it is used. During the development of Maven 3.4, there have been quite a few discussions on dev@ about build issues which were all caused by overriding the dependency management that way without noticing this is not supported transitively.

      Attachments

        1. MNG-6141.zip
          2 kB
          Christian Schulte
        2. MNG-6141-3.zip
          3 kB
          Joerg Schaible

        Issue Links

          Activity

            People

              Unassigned Unassigned
              schulte77 Christian Schulte
              Votes:
              3 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated: