Lightweight, self-hosted Maven Central cache with upstream request throttling, deployable as a web application (WAR).
Features
- Self-contained WAR deployment.
- Minimal 3rd-party dependencies.
- Very low maintenance.
- Serializes and rate-limits access to Maven Central to avoid HTTP 429 (Too Many Requests) responses.
- Trivially horizontally scalable even on ephemeral storage.
- The biggest feature: lack of features.
Non-Goals
- Publishing/deployment.
- Web interface.
- Authentication.
- Artifact modification.
- Cache eviction / clean-up of old artifacts.
- Snapshot artifact resolution.
- Checksum or signature validation: this is done within the Maven builds.
- Search, indexing, or directory listings.
- Alternate or multiple repositories.
- General-purpose reverse proxy.
- BLOB stores, databases, or persistence mechanisms more sophisticated than immutable files.
- Statistics, metrics, health checks.
Motivation
Our Jenkins builds use per-workspace and per-JDK .m2/repository-jdk-version
repositories. This results in frequent requests to Maven Central. Without a shared artifact
cache, our build agents quickly achieve "429 Too Many Requests".