Skip to content

[maven-4.0.x] Fix #12075: skip expression validation for distributionManagement repository IDs#12096

Closed
gnodet wants to merge 1 commit into
maven-4.0.xfrom
backport-12076-to-4.0.x
Closed

[maven-4.0.x] Fix #12075: skip expression validation for distributionManagement repository IDs#12096
gnodet wants to merge 1 commit into
maven-4.0.xfrom
backport-12076-to-4.0.x

Conversation

@gnodet
Copy link
Copy Markdown
Contributor

@gnodet gnodet commented May 19, 2026

Backport of #12076 to maven-4.0.x.

Fixes #12075: nested property interpolation in distributionManagement repository IDs fails validation in Maven 4. Skips expression validation for distributionManagement repository IDs, similar to the fix for profile repository URLs in #12047.

Claude Code on behalf of Guillaume Nodet

…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 added a commit that referenced this pull request May 19, 2026
@gnodet
Copy link
Copy Markdown
Contributor Author

gnodet commented May 19, 2026

Closing as duplicate of #12077.

Claude Code on behalf of Guillaume Nodet

@gnodet gnodet closed this May 19, 2026
@gnodet gnodet deleted the backport-12076-to-4.0.x branch May 19, 2026 11:21
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.

1 participant