Use Google Maven Central mirror - #1785
Merged
Merged
Conversation
Sonatype's repo.maven.apache.org and repo1.maven.org both return 403 from the production server IP regardless of User-Agent, while maven-central.storage-download.googleapis.com serves the same artifact tree and returns 200. Add the Google mirror URL to the set is_maven_central? and supports_archetype_catalog? recognise, and update the seed URL for the default maven registry. The production registry row needs its url updated via console.
…data fetch versions_metadata already fetches and caches each version's .pom via download_pom, but dependencies_metadata made its own uncached request(url) for the same file, so every new version fetched its .pom twice. fetch_effective_pom now memoizes the effective-pom body plus the Last-Modified header; fetch_pom parses from that cache and dependencies_metadata reads the body from it, cutting per-version requests from 3 (.pom, .pom, .jar.sha1) to 2.
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.
Sonatype's
repo.maven.apache.organdrepo1.maven.orgboth return 403 from the production server IP regardless of User-Agent, whilemaven-central.storage-download.googleapis.comserves the same artifact tree and returns 200.MAVEN_CENTRAL_URLSsois_maven_central?andsupports_archetype_catalog?recognise itrate_limit: 2fetch_effective_pomsodependencies_metadatareuses whatversions_metadataalready fetched instead of requesting the same.pomagain, cutting per-version requests from 3 (.pom,.pom,.jar.sha1) to 2Production needs the registry row updated via console after deploy: