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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
