Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
This affects all released Maven versions so far.
Problem reproducer: https://github.com/cstamas/MNG-7852 (repo name is wrong, obviously).
In short: unlike with dependencies, where you CAN override some "deep transitive" dependency by re-declaring it directly as 1st level dependency in POM, for depMgt import this does not work, actually, it works quite the opposite ("first comes, wins"). Moreover, Maven remains silent about this, as reproducer shows, and all of this goes unnoticed.
Solution: at least depMgt import should make "the maven way", maybe not by default (to not break existing builds) but configurable. Problem is solved if in reproducer:
- with fix enabled, junit 5.9.3 is used, AND
- with fix disabled, Maven yells about ignored depMgt import
Attachments
Issue Links
- is related to
-
MNG-7854 Non directly managed imported and conflicting depMgt entries should warn
- Closed
- relates to
-
MPH-183 Effective-pom + verbose should show import path to BOM dependencyManagement
- Open
-
MNG-7344 Effective pom should contain more finegrained details regarding its content origin: track dependencyManagement import
- Closed
- links to