默认maven本地仓库路径:C:\Users\Administrator\.m2
修改maven本地仓库路径方法:
1.打开E:\maven\apache-maven-2.2.1\conf\settings.xml
2.找到
<!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
| Default: ~/.m2/repository
<localRepository>/path/to/local/repo</localRepository>
-->
3.在这个注释的外面加上要保存仓库的地址,如F:/java/maven/repo这样仓库路径就会修改到该路径下了
<localRepository>F:/java/maven/repo</localRepository>
4.将上一步修改好的setting.xml文件复制到F:/java/maven/repo目录下一份;
5.修改完毕