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

Taught in

References