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

   ## Summary
   
   Backport of #12744 to the `maven-4.0.x` branch.
   
   - Cherry-picked all 4 commits from the original PR
   - Resolved merge conflicts (import statements, coexistence with active 
profile properties tests already on 4.0.x)
   - Adapted `testBomPackagingActivatedProfilesArePreserved` to a pure unit 
test since `bom` packaging is not supported by the model builder on 4.0.x
   
   ## Changes
   
   Maven 4 introduces support for activating profiles based on the project's 
`<packaging>` type. However, when a dependency built with Maven 4 is consumed 
by tools such as Maven 3, Gradle, or IDEs that do not understand the 
`<packaging>` activation condition, dependency resolution can differ between 
tools.
   
   This change updates consumer POM generation to resolve packaging-based 
profile activation before the consumer POM is published, ensuring that 
downstream consumers see a consistent and predictable set of dependencies.
   
   ## Test plan
   
   - [x] All 16 `ConsumerPomBuilderTest` tests pass on 4.0.x
   - [ ] CI passes
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


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