By default, Maven local repository is default to
.m2 folder :- Unix/Mac OS X –
~/.m2 - Windows –
C:\Documents and Settings\{your-username}\.m2
1. Update Maven Local Repository
Normally, I will change the default local repository folder from default.m2 to another more meaningful name, for example, maven-repo.Find {M2_HOME}\conf\setting.xml, update
localRepository to something else.
{M2_HOME}\conf\setting.xml
<settings>
<!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
| Default: ~/.m2/repository
<localRepository>/path/to/local/repo</localRepository>
-->
<localRepository>D:/maven_repo</localRepository>
No comments:
Post a Comment