gnodet commented on PR #12316:
URL: https://github.com/apache/maven/pull/12316#issuecomment-4751500121

   Closing this PR — after discussion with Tamas, the current behavior is 
correct.
   
   `TransitiveDependencyManager` applies depMgmt "down the tree" within the 
same branch. When module-a inherits `lib-c:1.0` management from parent-a, that 
management correctly applies to `lib-c` at depth 3 in module-a's subtree. This 
is by design, not a bug.
   
   The fix for consumers who need a different version is to explicitly declare 
the dependency in their own `<dependencyManagement>` — root's depMgmt is 
collected at depth 0 and wins via `putIfAbsent` semantics.
   
   _Claude Code on behalf of Guillaume Nodet_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to