Hiteshsai007 opened a new pull request, #12461:
URL: https://github.com/apache/maven/pull/12461

   This PR adds an integration test to demonstrate and document the correct 
usage of the `<mixins>` feature (introduced in Maven 4.2.0) as the native and 
architecturally preferred solution to 
[MNG-8432](https://issues.apache.org/jira/browse/MNG-8432).
   
   As discussed in the original PR #12417 (which proposed extending 
`<dependency>` BOM imports to include properties), inheriting both dependency 
management and properties from a shared BOM-like module is a highly requested 
use case (e.g. for Spring Boot, Quarkus). However, extending 
`dependencyManagement` imports to pull properties introduces significant risks 
around property pollution, silent semantic drift, and ordering fragility.
   
   Instead, the maintainers correctly pointed out that **Mixins** are the 
supported mechanism for this use case. This integration test 
(`MavenITmng8432MixinsPropertiesTest`) explicitly verifies that when a project 
uses a `<mixin>`, it successfully inherits both:
   1. `dependencyManagement` (verified by the consumer being able to resolve 
the managed dependency)
   2. `properties` (verified by checking the `effective-pom` for the inherited 
property)
   
   This serves as both a regression test for the mixin functionality and as 
executable documentation for users encountering the MNG-8432 use case.


-- 
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