Title: Maven wrapper caching does not seem to cache enough · Issue #1095 · actions/setup-java · GitHub
Open Graph Title: Maven wrapper caching does not seem to cache enough · Issue #1095 · actions/setup-java
X Title: Maven wrapper caching does not seem to cache enough · Issue #1095 · actions/setup-java
Description: Description: setup-java was recently modified (2 weeks ago) to also cache Maven distributions used by the mvnw wrapper script. See #1027. JRuby's build uses setup-java@v5 but we are still seeing failed downloads of the distribution. We w...
Open Graph Description: Description: setup-java was recently modified (2 weeks ago) to also cache Maven distributions used by the mvnw wrapper script. See #1027. JRuby's build uses setup-java@v5 but we are still seeing fa...
X Description: Description: setup-java was recently modified (2 weeks ago) to also cache Maven distributions used by the mvnw wrapper script. See #1027. JRuby's build uses setup-java@v5 but we are still seein...
Opengraph URL: https://github.com/actions/setup-java/issues/1095
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Maven wrapper caching does not seem to cache enough","articleBody":"**Description:**\n\nsetup-java was recently modified (2 weeks ago) to also cache Maven distributions used by the `mvnw` wrapper script. See #1027.\n\nJRuby's build uses `setup-java@v5` but we are still seeing failed downloads of the distribution. We would expect this to have been cached long ago, either by us or by other projects, so this is unexpected.\n\nSee a failure as recently as yesterday, associated with a PR to attempt to reduce these failures: https://github.com/jruby/jruby/actions/runs/28970521797/job/85964762963\n\n**Task version:**\n\n`setup-java@v5` as of the time of the above build.\n\n**Platform:**\n- [x] Ubuntu\n- [ ] macOS\n- [ ] Windows\n\nI know we see it on Ubuntu, but I believe it has affected builds on other platforms as well. It does not appear to be specific to any platform.\n\n**Runner type:**\n- [x] Hosted\n- [ ] Self-hosted\n\n**Repro steps:** \nA description with steps to reproduce the issue. If your have a public example or repo to share, please provide the link.\n\nThe build below shows a failed mvnw wrapper download that killed a JRuby CI job.\n\nhttps://github.com/jruby/jruby/actions/runs/28970521797/job/85964762963\n\n**Expected behavior:**\n\nWe use `cache: maven` and `setup-java@v5` so we expected that the wrapper would not be downloaded from Maven Central and would not trigger this error.\n\n**Actual behavior:**\n\nAs others have reported, rate-limiting or similar restrictions at the Ruby Central level appear to be causing mvnw dist downloads to fail occasionally. We want to use setup-java caching to prevent re-downloading of this distribution, since it almost never changes. That does not appear to be happening.","author":{"url":"https://github.com/headius","@type":"Person","name":"headius"},"datePublished":"2026-07-09T20:56:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/1095/setup-java/issues/1095"}
| 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:972418a0-228f-b91a-f202-718a82b981e9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C42:1E0340:60C9F8:834D73:6A627C4C |
| html-safe-nonce | 0084f6d34e1abaaaa95565d239259017f75977e3c296fa864ba6711ec4b3d235 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzQyOjFFMDM0MDo2MEM5Rjg6ODM0RDczOjZBNjI3QzRDIiwidmlzaXRvcl9pZCI6Ijc2NzQxNDcwMTY3OTgyNzI1ODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 81fd901be89be86e584e59c1ee7e8f8811265fa02bc2f4bc4dc08b1df5066de5 |
| hovercard-subject-tag | issue:4849840667 |
| 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/1095/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e6390db64563cef4e4b71cfba1ff05445a265d9c6afd48f57ac081dc2e7ba67f/actions/setup-java/issues/1095 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e6390db64563cef4e4b71cfba1ff05445a265d9c6afd48f57ac081dc2e7ba67f/actions/setup-java/issues/1095 |
| og:image:alt | Description: setup-java was recently modified (2 weeks ago) to also cache Maven distributions used by the mvnw wrapper script. See #1027. JRuby's build uses setup-java@v5 but we are still seeing fa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | headius |
| hostname | github.com |
| expected-hostname | github.com |
| None | 838e87bd0e4f5415707a930bc14e89e382dc2ea046e50ff575252eb2f2cb06a2 |
| 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 | f0081192f88523d2bf4cfdf22bb3e138affc4cd1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width