[MNG-8708] Backport parent inference fix to maven-4.0.x - #13010
Merged
Conversation
Distinguish explicitly declared parent coordinates from values inferred through relativePath. Infer an omitted parent version from the matching reactor model before raw-model validation. Signed-off-by: goutamadwant <workwithgoutam@gmail.com>
- Align mixin validation to use location-based check consistent with the parent validation change - Add defensive comment in inferParentVersion for the grandparent version fallback path - Add three-level integration test (grandparent → versionless parent → child) to exercise the version inheritance fallback in inferParentVersion Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The IT framework on maven-4.0.x uses File-based API (extractResources returns File, newVerifier takes String) and requires a version range constructor, unlike master's Path-based API. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
rmannibucau
approved these changes
Sep 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Backport of #12703 to
maven-4.0.x(targeting 4.0.0-rc-7).inferParentVersion, location-based parent validator check, defensive comment, and three-level integration testChanges
DefaultModelBuilder: addsinferParentVersion()to infer missing parent version from reactor models, with defensive comment on grandparent fallbackDefaultModelValidator: switches parent relativePath warning from value-based to location-based check, preventing false positives when coordinates are inferred viarelativePathresolutionTest plan
maven-implunit tests: 571 passed, 0 failures🤖 Generated with Claude Code