You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "gnodet (via GitHub)" <gi...@apache.org> on 2026/07/17 09:49:23 UTC

Re: [PR] [MNG-8432] Integration test for MNG-8432 using mixins [maven]

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

   ### Proposed solution for MNG-8432
   
   The use case described in [MNG-8432](https://issues.apache.org/jira/browse/MNG-8432) — inheriting both `<dependencyManagement>` and `<properties>` from a BOM-like project — is already supported by the **Mixins** feature (model version 4.2.0).
   
   Instead of extending BOM `<scope>import</scope>` semantics to include properties (which risks property pollution, silent semantic drift, and ordering fragility), a project can declare a `<mixin>` to inherit both dependency management *and* properties from a shared module:
   
   ```xml
   <project xmlns="http://maven.apache.org/POM/4.2.0" root="true" ...>
     <modelVersion>4.2.0</modelVersion>
     ...
     <mixins>
       <mixin>
         <groupId>com.example</groupId>
         <artifactId>my-bom</artifactId>
         <version>1.0</version>
       </mixin>
     </mixins>
   </project>
   ```
   
   This PR adds an integration test verifying this behavior — that the consumer project successfully inherits both properties and managed dependencies from the mixin BOM.


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org