Repository navigation
Interpolate raw dependencyManagement coordinates before resolving versions - #1486
Merged
Merged
Conversation
With processDependencyManagementTransitive=false the entries come from
the raw model, so ${project.groupId} and ${project.version} reached the
resolver as-is; the resolver in Maven 3.10+ and 4 rejects them. Entries
whose groupId or artifactId still cannot be resolved are skipped with a
warning instead of failing the goal.
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.
Fixes #1485.
With
processDependencyManagementTransitive=false,display-dependency-updates, the dependency-updates reports and themaxDependencyUpdatesenforcer rule read dependencyManagement from the raw model, where only a version of the form${property}was resolved. A BOM imported as${project.groupId}:bom:${project.version}reached the resolver uninterpolated, and the resolver in Maven 3.10+ and 4 rejects it with "Not fully interpolated artifact".The raw entries now have
${project.*}/${pom.*}expressions and properties resolved in groupId, artifactId, version, type and classifier, including embedded expressions such as${project.groupId}.sub. An entry whose groupId or artifactId still cannot be resolved is skipped with a warning instead of failing the goal, as it effectively was on Maven 3.9.Verified: a parent importing
${project.groupId}:bom:${project.version},display-dependency-updates -DprocessDependencyManagementTransitive=falseon Maven 4.0.0-rc-7 โ 2.24.0 fails with the reported error, this branch lists the updates. Not run on Maven 3.10.0 final; 3.10.0-rc-1 does not validate and passes either way.