Local repository location
By default, the Maven local repository is created at USER_HOME/.m2/repository
. This can be changed to a preferred location by editing MAVEN_HOME/conf/settings.xml
to update the value of the localRepository
element, as follows:
<localRepository>/path/to/local/repo</localRepository>