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

   ## Summary
   
   - Filter out managed dependencies with uninterpolated `${…}` property 
expressions in `DefaultModelBuilder.buildEffectiveModel()`, so all consumers 
(lifecycle, third-party plugins, etc.) see a clean model
   - Root cause: published POMs (e.g. mina-sshd, activemq-openwire) declare 
managed dependencies with property expressions that are undefined in the 
consumer's context; Maven 4's stricter `MavenValidator` rejects these during 
`collectDependencies()`, causing "Invalid Collect Request: null" errors
   - The prior fix for #12305 filtered entries in 
`ArtifactDescriptorReaderDelegate` and `DefaultProjectDependenciesResolver`, 
but plugins like `maven-enforcer-plugin` that build their own `CollectRequest` 
from `project.getDependencyManagement()` bypassed those fix points
   - Includes 4 unit tests for `filterUninterpolatedManagedDependencies()` and 
an integration test exercising the enforcer plugin `dependencyConvergence` rule 
with inherited uninterpolated managed dependencies
   
   ## Test plan
   
   - [x] Unit tests pass: 4 new tests in `DefaultModelBuilderTest`
   - [x] Manual validation: mina-sshd and activemq-openwire build successfully 
with the fix
   - [ ] CI passes
   - [ ] Existing `MavenITgh12305` IT test still passes (no regression)
   
   Closes #12474
   
   🤖 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