Maven repository
A server or folder that stores published libraries by their coordinates, from which Maven and Gradle download dependencies.
In more detail
Maven Central is the main public repository. Downloaded files are cached in a local repository in your home directory, so each version is fetched once. The Maven install phase copies your own artifact into the local repository so other projects on the same machine can depend on it.
Example
repositories { mavenCentral() }Related terms
- Maven coordinates — The group, artifact and version that together uniquely name a project or library, such as com.example:inventory:1.0.0.
- dependency — Anything a program needs in order to work, such as a library, a tool or another service.
- Maven build lifecycle — Maven's fixed, ordered list of phases, validate, compile, test, package, verify, install and deploy, where asking for one runs all before it.
Taught in
- The Toolchain: Maven — Modern Java: Virtual Threads & High-Throughput Services
- The Toolchain: Gradle — Modern Java: Virtual Threads & High-Throughput Services