GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add support for multiple Maven servers by brunoborges · Pull Request #1239 · actions/setup-java

Conversation

@brunoborges

@brunoborges brunoborges commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Description:
Maven workflows that publish to separate release, snapshot, or private repositories currently have to generate or patch settings.xml themselves. This adds a structured mvn-server-credentials multiline input that generates multiple ordered <server> entries from environment variable names.

The parser rejects malformed entries and duplicate server IDs, while existing single-server inputs and deprecated aliases remain the fallback when the new input is absent. XML escaping, GPG profile behavior, settings overwrite handling, documentation, tests, and checked-in action bundles are updated consistently.

Related issue:
Fixes: #85

Check list:

  • Ran npm run check locally (format, lint, build, test) and all checks pass.
  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@brunoborges
Add multiple Maven server credentials
b42c2ff
Co-authored-by: Copilot App <[email protected]>
Copilot AI lite review requested due to automatic review settings August 17, 2026 21:01
@brunoborges
brunoborges requested a review from a team as a code owner August 17, 2026 21:01
Copilot started reviewing on behalf of brunoborges August 17, 2026 21:02
View session
Copilot AI reviewed Aug 17, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

This PR adds first-class support for configuring multiple Maven <server> credential entries in the generated settings.xml, enabling workflows to publish to release/snapshot/private repositories without custom settings.xml patching. It introduces a new multiline input (mvn-server-credentials) that is parsed, validated (malformed entries + duplicate IDs rejected), and used preferentially while preserving the existing single-server inputs (and deprecated aliases) as a fallback.

Changes:

  • Add a new mvn-server-credentials multiline input and plumb it through authentication settings generation.
  • Implement parsing/validation for multiple server credential entries and update settings.xml generation to emit multiple ordered <server> blocks.
  • Update docs, tests, and bundled dist/ artifacts to match the new behavior.
Show a summary per file
File Description
src/constants.ts Adds the mvn-server-credentials input constant.
src/auth.ts Adds parsing + selection logic for multiple servers and updates settings.xml generation to emit multiple <server> entries.
tests/auth.test.ts Adds coverage for parsing, validation, precedence rules, and multi-server XML output ordering.
action.yml Documents the new multiline input at the action interface level.
README.md Adds the new input to the published inputs table.
docs/advanced-usage.md Adds an “Publishing to multiple Maven servers” section with an example and expected XML output.
dist/setup/index.js Updates bundled constants export to include the new input.
dist/setup/81.index.js Updates bundled auth logic for multi-server parsing/generation.
dist/cleanup/index.js Updates bundled constants to include the new input (unused in cleanup).

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 6/9 changed files
  • Comments generated: 0
  • Review effort level: Lite

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@brunoborges
brunoborges merged commit a42a52c into main Aug 17, 2026
86 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@brunoborges
brunoborges deleted the brunoborges-support-multiple-maven-servers branch August 17, 2026 21:05
@rennerdo30 rennerdo30 mentioned this pull request Oct 22, 2026
[Historical PR] deps(actions): bump actions/setup-java from 5 to 6 in the actions-all group rennerdo30/toss-share#122
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Add support for multiple servers.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@brunoborges
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.