Repository navigation
Support Maven mirrors in generated settings.xml - #1289
Merged
brunoborges merged 5 commits intoNov 4, 2026
Merged
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 59df028a-0d1b-49cb-8126-ab26408663e4
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Missing selectors in port-bearing or IPv6 URLs can silently produce ineffective mirrors instead of failing validation.
1 open finding
What changed in this PR
Adds mvn-mirrors to setup-java’s Maven settings generation, allowing repository redirection independently of repository profiles.
Changes:
- Parses mirror entries and generates escaped, top-level XML.
- Documents authentication and selector behavior.
- Adds regression and cross-platform workflow coverage, with rebuilt bundles.
| File | Description |
|---|---|
| src/constants.ts | Defines the mirror input constant. |
| src/auth.ts | Parses mirrors and generates settings. |
| README.md | Introduces mirror configuration. |
| docs/advanced-usage.md | Documents usage and authentication. |
| dist/setup/index.js | Includes the new input constant. |
| dist/setup/81.index.js | Bundles mirror handling. |
| dist/cleanup/index.js | Refreshes bundled constants. |
| action.yml | Declares the optional input. |
| .github/workflows/e2e-publishing.yml | Checks Maven mirror selection across platforms. |
| tests/auth.test.ts | Covers parsing, XML generation, and compatibility. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 59df028a-0d1b-49cb-8126-ab26408663e4
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 59df028a-0d1b-49cb-8126-ab26408663e4
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 59df028a-0d1b-49cb-8126-ab26408663e4
…-setti Co-authored-by: Copilot App <[email protected]>
brunoborges
deleted the
brunoborges-support-maven-mirrors-in-generated-setti
branch
November 4, 2026 22:10
taylorcreech88-droid
approved these changes
Nov 5, 2026
FarmVivi
added a commit
to FarmVivi/panel-auto-starter
that referenced
this pull request
Nov 7, 2026
…se 3.0.4) Same change as Renovate's #182, applied here so it ships with the rest. - actions/setup-java 6.1.0 -> 6.2.0: Liberica and Corretto resolution fixes, bundled dependency updates, and a new opt-in `mvn-mirrors` input for the generated settings.xml. We use Temurin 25 with the Maven cache and pass no repository or mirror input; the PR states the existing settings generation is unchanged (actions/setup-java#1289, action.yml diff read). - softprops/action-gh-release 3.0.3 -> 3.0.4: maintenance release, only its own dependencies changed (compare v3.0.3...v3.0.4). Neither can run locally. The SonarQube workflow exercises setup-java on push, and the next release exercises both through Release Build. Co-Authored-By: Claude Opus 5.5 <[email protected]>
gregor-dietrich
pushed a commit
to gregor-dietrich/Midas
that referenced
this pull request
Nov 23, 2026
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/setup-java](https://github.com/actions/setup-java) | action | minor | `v6.1.0` → `v6.3.0` | --- ### Release Notes <details> <summary>actions/setup-java</summary> ### [`v6.3.0`](https://github.com/actions/setup-java/releases/tag/v6.3.0) [Compare Source](actions/setup-java@v6.2.0...v6.3.0) ##### Behavior change: Java problem matcher is now opt-in Starting with v6.3.0, `setup-java` no longer registers the Java problem matcher by default ([#​1326](actions/setup-java#1326), fixes [#​1322](actions/setup-java#1322)). Java compiler warnings, compiler errors, and uncaught exceptions are no longer turned into annotations on pull request diffs unless you opt in. To keep annotations, set `problem-matcher: true`: ```yaml - uses: actions/setup-java@v6 with: distribution: temurin java-version: '25' problem-matcher: true ``` Compiler output still appears in the build logs, and compilation errors still fail the build. Only annotations are affected. **Why:** inline annotations cluttered pull request reviews, and GitHub Actions caps annotations at 10 errors, 10 warnings, and 10 notices per step, and 50 per job. Larger Java builds therefore showed only a truncated subset of their diagnostics as annotations. See [Java problem matcher (compiler annotations)](https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#java-problem-matcher-compiler-annotations). ##### What's Changed - Architecture validation for JDK file installs by [@​v-mahabaleshwars](https://github.com/v-mahabaleshwars) in [#​1324](actions/setup-java#1324) - chore(deps): bump fast-xml-parser from 5.11.2 to 5.12.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1323](actions/setup-java#1323) - Add Microsoft OpenJDK 25.0.5.0.2 support by [@​brunoborges](https://github.com/brunoborges) with [@​Copilot](https://github.com/Copilot) in [#​1320](actions/setup-java#1320) - Fix JetBrains Runtime hotfix version selection by [@​brunoborges](https://github.com/brunoborges) with [@​Copilot](https://github.com/Copilot) in [#​1321](actions/setup-java#1321) - Make Java problem matcher opt-in (default problem-matcher to false) by [@​brunoborges](https://github.com/brunoborges) in [#​1326](actions/setup-java#1326) **Full Changelog**: <actions/setup-java@v6.2.0...v6.3.0> ### [`v6.2.0`](https://github.com/actions/setup-java/releases/tag/v6.2.0) [Compare Source](actions/setup-java@v6.1.0...v6.2.0) ##### What's Changed - Fix Liberica SDKMAN patch release resolution by [@​brunoborges](https://github.com/brunoborges) in [#​1291](actions/setup-java#1291) - Update Undici to 6.29.1 by [@​brunoborges](https://github.com/brunoborges) in [#​1308](actions/setup-java#1308) - chore(deps): bump the monthly-npm-updates group with 12 updates by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1309](actions/setup-java#1309) - Fix Liberica Java 25 release resolution by [@​brunoborges](https://github.com/brunoborges) in [#​1313](actions/setup-java#1313) - Add repository-specific Copilot instructions by [@​brunoborges](https://github.com/brunoborges) in [#​1312](actions/setup-java#1312) - Support exact Corretto release versions by [@​electrum](https://github.com/electrum) in [#​1310](actions/setup-java#1310) - Support Maven mirrors in generated settings.xml by [@​brunoborges](https://github.com/brunoborges) in [#​1289](actions/setup-java#1289) ##### New Contributors - [@​electrum](https://github.com/electrum) made their first contribution in [#​1310](actions/setup-java#1310) **Full Changelog**: <actions/setup-java@v6.1.0...v6.2.0> </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODEuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjE4MS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Reviewed-on: https://git.vptr.de/gregor/midas2/pulls/126 Reviewed-by: gregor <[email protected]> Co-authored-by: Renovate Bot <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Description:
Add optional
mvn-mirrorsinput with multilinemirror-id:mirror-url:mirror-ofentries and generate top-level Maven<mirrors>settings independently of repository profiles.Preserve URL schemes/ports and selectors such as
external:*andexternal:http:*; reject missing fields and duplicate IDs; escape generated XML. Authenticated mirrors use matching server IDs, while public mirrors need no matching credentials. Existing repository/Central controls, GPG settings, custom paths, and overwrite behavior remain unchanged.Includes documentation, regression tests, cross-platform Maven mirror-selection workflow coverage, and rebuilt action bundles. Replaces #1288 using the branch published directly in
actions/setup-java.Validation:
npm run check— passed: formatting, lint, build, and all 45 test suites / 1,585 tests.npx tsc --noEmit— passed.*andexternal:*— passed, confirming Central and POM-declared dependency/plugin repository redirection. GitHub-hosted Windows/Linux jobs have not been run locally.Related issue:
Fixes #1287
Check list:
npm run checklocally (format, lint, build, test) and all checks pass.