Skip to content

[MNG-5913] Allow defining aliases for existing server configurations in settings.xml#12473

Merged
slawekjaranowski merged 1 commit into
apache:maven-4.0.xfrom
slawekjaranowski:cp-2333-4.0
Jul 12, 2026
Merged

[MNG-5913] Allow defining aliases for existing server configurations in settings.xml#12473
slawekjaranowski merged 1 commit into
apache:maven-4.0.xfrom
slawekjaranowski:cp-2333-4.0

Conversation

@slawekjaranowski

Copy link
Copy Markdown
Member
  • [MNG-5913] Allow defining aliases for existing server configurations in settings.xml

Add the next tag aliases to the server in settings.xml

Additional server will be created in memory by SettingsBuilder, so the generated configuration should be transparent to other as Settings#getServers() will return complete list.

(cherry picked from commit 09b2dfc) #2333


Following this checklist to help us incorporate your
contribution quickly and easily:

  • Your pull request should address just one issue, without pulling in other changes.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Each commit in the pull request should have a meaningful subject line and body.
    Note that commits might be squashed by a maintainer on merge.
  • Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied.
    This may not always be possible but is a best-practice.
  • Run mvn verify to make sure basic checks pass.
    A more thorough check will be performed on your pull request automatically.
  • You have run the Core IT successfully.

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

…in settings.xml

* [MNG-5913] Allow defining aliases for existing server configurations in settings.xml

Add the next tag aliases to the server in settings.xml

Additional server will be created in memory by SettingsBuilder,
so the generated configuration should be transparent to other
as Settings#getServers() will return complete list.

(cherry picked from commit 09b2dfc)
@slawekjaranowski slawekjaranowski self-assigned this Jul 12, 2026
@slawekjaranowski slawekjaranowski added the enhancement New feature or request label Jul 12, 2026
@slawekjaranowski
slawekjaranowski requested a review from gnodet July 12, 2026 15:19

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: Server aliases backport to 4.0.x

Verdict: APPROVE

Clean cherry-pick of the merged PR #2333 (master → maven-4.0.x). Same 20 files, same 641+/15−, identical code.

The server alias feature was thoroughly reviewed across 3 review cycles on #2333:

  • Alias expansion correct in both v4 and v3 compat layers
  • Validation covers duplicate alias-vs-id, alias-vs-alias, self-referencing, empty values
  • Comprehensive test coverage with dedicated XML fixtures
  • Schema versioning follows Modello conventions

No code differences from the merged version. LGTM.


This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying.

Claude Code on behalf of Guillaume Nodet

gnodet added a commit to gnodet/maven that referenced this pull request Jul 12, 2026
@slawekjaranowski
slawekjaranowski merged commit a8d6eb1 into apache:maven-4.0.x Jul 12, 2026
22 checks passed
@slawekjaranowski
slawekjaranowski deleted the cp-2333-4.0 branch July 12, 2026 16:07
@github-actions github-actions Bot added this to the 4.0.0-rc-6 milestone Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request mvn40

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MNG-5913] Allow to define aliases for existing server configurations in settings.xml

2 participants