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>
Get Mastering Apache Maven 3 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.