Skip to content

Route Maven through Moderne Artifactory cache to avoid HTTP 429 - #112

Merged
Jenson3210 merged 1 commit into
mainfrom
jenson3210/route-maven-through-moderne-cache
May 12, 2026
Merged

Jenson3210 merged 1 commit into
mainfrom
jenson3210/route-maven-through-moderne-cache

Conversation

@Jenson3210

Copy link
Copy Markdown
Contributor

Summary

  • CI failed today with https://repo.maven.apache.org/maven2: HTTP 429 — Maven Central is rate-limiting parallel test resolution.
  • Inline the same mirror configuration that moderneinc/rewrite-java-security uses successfully today: route all Maven resolution through https://artifactory.moderne.ninja/artifactory/moderne-cache-3/ via s4u/maven-settings-action, and set REWRITE_GRADLE_MIRROR_* env vars on the Gradle build / publish steps.
  • Replaces the thin call into openrewrite/gh-automation's reusable ci-gradle.yml / publish-gradle.yml with their composite actions invoked inline — the bypass pattern the reusable workflow explicitly recommends for consumers that need a mirror.
  • Validated by the pilot PR moderneinc/rewrite-dropwizard#14, which built green in 4m16s with no 429s.

Test plan

  • PR CI passes
  • Build logs show s4u/maven-settings-action step ran
  • No HTTP 429 lines in build logs

Maven Central has started rate-limiting parallel test resolution
(HTTP 429), failing CI across recipe repos. Inline the same mirror
configuration used by moderneinc/rewrite-java-security: route
`mirrorOf: "*"` through artifactory.moderne.ninja's moderne-cache-3
via s4u/maven-settings-action, and set REWRITE_GRADLE_MIRROR_* on
the build/publish steps so Gradle resolution goes through the cache
too.

This replaces the call into openrewrite/gh-automation's reusable
ci-gradle.yml / publish-gradle.yml workflows with their composite
actions called inline, which is the bypass pattern the reusable
workflow explicitly recommends for consumers that need a mirror.
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite May 12, 2026
@Jenson3210
Jenson3210 merged commit 5758de8 into main May 12, 2026
1 check passed
@Jenson3210
Jenson3210 deleted the jenson3210/route-maven-through-moderne-cache branch May 12, 2026 22:43
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant