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/08/31 02:33:46 UTC
[PR] [MNG-8287] Backport consumer POM packaging profile resolution to 4.0.x [maven]
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: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MNG-8287] Backport consumer POM packaging profile resolution to 4.0.x [maven]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12967:
URL: https://github.com/apache/maven/pull/12967#issuecomment-5483380670
@gnodet Please assign appropriate label to PR according to the type of change.
--
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
Re: [PR] [MNG-8287] Backport consumer POM packaging profile resolution to 4.0.x [maven]
Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet merged PR #12967:
URL: https://github.com/apache/maven/pull/12967
--
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