A repository is a storage location where artifacts are stored.
This is not a repository of code but a repository of artifact (ie library, package,…)
The repository can be:
Example: Maven Central, a corporate Maven or Ivy repository, or a directory in the local file system.
A remote repository allows to: