Title: Further executions of setup-java overwrite previous toolchain entries for different JDK versions · Issue #1099 · actions/setup-java · GitHub
Open Graph Title: Further executions of setup-java overwrite previous toolchain entries for different JDK versions · Issue #1099 · actions/setup-java
X Title: Further executions of setup-java overwrite previous toolchain entries for different JDK versions · Issue #1099 · actions/setup-java
Description: Description: Previously, it was possible to execute setup-java multiple times with different JDKs or JDK versions and have them all in the Maven toolchains XML. Now, it is always overwritten (contrary to the documentation under https://g...
Open Graph Description: Description: Previously, it was possible to execute setup-java multiple times with different JDKs or JDK versions and have them all in the Maven toolchains XML. Now, it is always overwritten (contr...
X Description: Description: Previously, it was possible to execute setup-java multiple times with different JDKs or JDK versions and have them all in the Maven toolchains XML. Now, it is always overwritten (contr...
Opengraph URL: https://github.com/actions/setup-java/issues/1099
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Further executions of setup-java overwrite previous toolchain entries for different JDK versions","articleBody":"**Description:**\nPreviously, it was possible to execute setup-java multiple times with different JDKs or JDK versions and have them all in the Maven toolchains XML. Now, it is always overwritten (contrary to the documentation under https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Modifying-Maven-Toolchains).\n\nUsing one execution of setup-java with multiple versions still works, but has the drawback that the output contains only the path of the last version.\n\n**Task version:**\nSince v5.5.0, probably because of #534.\n\n**Platform:**\n- [x] Ubuntu\n- [ ] macOS\n- [ ] Windows\n\n**Runner type:**\n- [ ] Hosted\n- [x] Self-hosted\n\n**Repro steps:** \nExecute setup-java consecutively with different versions. Output the Maven toolchains XML.\n\n**Expected behavior:**\nMultiple toolchain entries should be present.\n\n**Actual behavior:**\nOnly a single toolchain entry is present.","author":{"url":"https://github.com/christian-ertl","@type":"Person","name":"christian-ertl"},"datePublished":"2026-07-10T16:06:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1099/setup-java/issues/1099"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7777a722-c6e2-5f7d-e623-61c932c96588 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC76:2E05FC:2A1E30:39219C:6A6291D7 |
| html-safe-nonce | 3e6341e451c4148527a58b920d8f8a8bdb11f1846696132f9a88bb1a4c7e9687 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzc2OjJFMDVGQzoyQTFFMzA6MzkyMTlDOjZBNjI5MUQ3IiwidmlzaXRvcl9pZCI6IjE5NzQwNTQ4Njc1MzIxNTczOTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ca033db98f00c91502d604747157d23531aa5093b29e861251fd61eef7ea9137 |
| hovercard-subject-tag | issue:4856660881 |
| github-keyboard-shortcuts | repository,issues,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/setup-java/1099/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f42a868e6cb7cc5004466978398fed3f0da87c509bb978a8496ea8becd1620fd/actions/setup-java/issues/1099 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f42a868e6cb7cc5004466978398fed3f0da87c509bb978a8496ea8becd1620fd/actions/setup-java/issues/1099 |
| og:image:alt | Description: Previously, it was possible to execute setup-java multiple times with different JDKs or JDK versions and have them all in the Maven toolchains XML. Now, it is always overwritten (contr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | christian-ertl |
| hostname | github.com |
| expected-hostname | github.com |
| None | ac2209d8cb6970a1bd08cb0a3f821d7166ac544c2ca1c87819c335bb84310ecd |
| turbo-cache-control | no-preview |
| go-import | github.com/actions/setup-java git https://github.com/actions/setup-java.git |
| octolytics-dimension-user_id | 44036562 |
| octolytics-dimension-user_login | actions |
| octolytics-dimension-repository_id | 196057608 |
| octolytics-dimension-repository_nwo | actions/setup-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 196057608 |
| octolytics-dimension-repository_network_root_nwo | actions/setup-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2fca8cd598678aaa64706088ad13b4e19177e108 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width