Skip to content

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

Open
gnodet wants to merge 1 commit into
masterfrom
moored-noon
Open

Fix #12075: skip expression validation for distributionManagement repository IDs#12076
gnodet wants to merge 1 commit into
masterfrom
moored-noon

Conversation

@gnodet
Copy link
Copy Markdown
Contributor

@gnodet gnodet commented May 18, 2026

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>
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.

Nested property interpolation in distributionManagement fails validation in Maven 4

2 participants