The other essential concepts of Maven are discussed in the following sections.
Maven repositories are accessible locations designed to store the artifacts that Maven builds produce. To be more precise, a repository is a location to store a project's artifacts that is designed to match the Maven coordinates.
A Maven repository can be one of the following types:
A local repository is one that resides in the same machine where a Maven build runs. It is a
.m2 folder located in the
$USER_HOME directory of the user's machine. It is created when the
mvn command is run for the very first time. However, to override the default location, open the
settings.xml file if it exists; else, ...