Skip to content

Migrate download URLs from search.maven.org to repo.maven.apache.org#860

Merged
undera merged 1 commit into
masterfrom
chore/maven-central-url-migration
Jul 16, 2026
Merged

Migrate download URLs from search.maven.org to repo.maven.apache.org#860
undera merged 1 commit into
masterfrom
chore/maven-central-url-migration

Conversation

@undera

@undera undera commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Problem

The push-to-master site job fails at the prepare-upload step: downloads.py fetches the plugins-manager jar via https://search.maven.org/remotecontent?filepath=…, which now returns 504. That legacy endpoint is a redirect frontend on AWS CloudFront and is being retired by Sonatype in favour of central.sonatype.com.

Fix

Repoint every search.maven.org/remotecontent?filepath=… download URL to the canonical https://repo.maven.apache.org/maven2/… form. This is Maven Central fronted by Cloudflare's CDN (resolves to the same IPs as repo1.maven.org and does edge/geo routing transparently) — it simply drops the dead CloudFront redirect hop.

Scope

  • 944 URLs rewritten across jmeter.json, jpgc-graphs.json, self.json, jpgc-plugins.json, jpgc-tools.json (both https:// and 4 legacy http:// lib forms).
  • Pure 1:1 prefix swap; no structural changes. format_repo.py --check passes.
  • Verified 486 distinct target URLs resolve (sampled → all 200).
  • blazemeter.json and various.json intentionally left untouched. repo.json (generated aggregate, skipped by build scripts) left alone.

🤖 Generated with Claude Code

The legacy search.maven.org/remotecontent endpoint (AWS CloudFront) now
returns 504 and is being retired by Sonatype, breaking the prepare-upload
deploy step in downloads.py. Repoint all such URLs to the canonical,
Cloudflare-fronted repo.maven.apache.org/maven2/ (identical to repo1.maven.org).

Covers jmeter.json, jpgc-graphs.json, self.json, jpgc-plugins.json and
jpgc-tools.json (944 URLs, both http and https forms). blazemeter.json and
various.json left untouched.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@undera
undera marked this pull request as ready for review July 16, 2026 08:37
@undera
undera merged commit 640414e into master Jul 16, 2026
2 checks passed
@undera
undera deleted the chore/maven-central-url-migration branch July 16, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant