gnodet opened a new pull request, #13010: URL: https://github.com/apache/maven/pull/13010
## Summary Backport of #12703 to `maven-4.0.x` (targeting 4.0.0-rc-7). - Cherry-picked both commits from the original PR - Resolved conflict: dropped the mixin validation alignment (mixins are a 4.2.0/master-only feature, not present on 4.0.x) - All other changes apply cleanly: `inferParentVersion`, location-based parent validator check, defensive comment, and three-level integration test ## Changes - **`DefaultModelBuilder`**: adds `inferParentVersion()` to infer missing parent version from reactor models, with defensive comment on grandparent fallback - **`DefaultModelValidator`**: switches parent relativePath warning from value-based to location-based check, preventing false positives when coordinates are inferred via `relativePath` resolution - **Integration tests**: path-only, gav-only, explicit-both, and three-level (grandparent → versionless parent → child) scenarios ## Test plan - [x] `maven-impl` unit tests: 571 passed, 0 failures - [ ] CI verification 🤖 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]
