Skip to content

Interpolate raw dependencyManagement coordinates before resolving versions - #1486

Merged
slachiewicz merged 1 commit into
masterfrom
agent/issue-1485-interpolate-depmgmt
Nov 9, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
agent/issue-1485-interpolate-depmgmt

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Fixes #1485.

With processDependencyManagementTransitive=false, display-dependency-updates, the dependency-updates reports and the maxDependencyUpdates enforcer 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=false on 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.

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.
@slachiewicz slachiewicz added the bug Something isn't working label Nov 9, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review November 9, 2026 15:40
@slachiewicz
slachiewicz merged commit a69a6c4 into master Nov 9, 2026
16 checks passed
@slachiewicz
slachiewicz deleted the agent/issue-1485-interpolate-depmgmt branch November 9, 2026 15:43
@github-actions github-actions Bot added this to the 2.24.1 milestone Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

display-dependency-updates fail on Maven 3.10: dependency groupId/version is not interpolated

1 participant