Skip to content

Fix #12075: skip expression validation for distributionManagement repository IDs (#12076)#12077

Merged
gnodet merged 1 commit into
maven-4.0.xfrom
backport/maven-4.0.x/pr-12076
May 19, 2026
Merged

Fix #12075: skip expression validation for distributionManagement repository IDs (#12076)#12077
gnodet merged 1 commit into
maven-4.0.xfrom
backport/maven-4.0.x/pr-12076

Conversation

@gnodet
Copy link
Copy Markdown
Contributor

@gnodet gnodet commented May 18, 2026

Backport of #12076 to maven-4.0.x.

Summary

  • Skip the uninterpolated expression check for distributionManagement repository IDs/URLs during file model validation
  • Parent POM properties are not available at this stage, so chained property references (e.g. ${distMgmtStagingId}${distMgmtReleasesId}apache.releases.https) cannot be fully resolved
  • Consistent with how profile repositories are already handled (cee3c33c74)
  • Uninterpolated repositories are still caught by MavenValidator.validateRemoteRepository() when they are actually used by the resolver

Fixes #12075

Test plan

  • Updated repositoryWithUninterpolatedId test to reflect that distributionManagement expression check is now skipped
  • Added distributionManagementWithChainedPropertyInId test covering the exact Ratis scenario from the issue
  • Existing integration test MavenITgh11140RepoDmUnresolvedTest still passes (regular repository check still catches uninterpolated expressions)

🤖 Generated with Claude Code

…ository IDs

Parent POM properties are not available during file model validation,
so chained property references in distributionManagement repository
IDs (e.g. ${distMgmtStagingId} -> ${distMgmtReleasesId}) cannot be
fully resolved at this stage. Skip the uninterpolated expression
check for distributionManagement repositories, consistent with how
profile repositories are already handled.

Uninterpolated repositories are still caught by MavenValidator when
they are actually used by the resolver.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@gnodet gnodet merged commit aa3b4d3 into maven-4.0.x May 19, 2026
23 checks passed
@gnodet gnodet deleted the backport/maven-4.0.x/pr-12076 branch May 19, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants