版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/weixin_39704078/article/details/82145833
maven的repository默认在C盘的C:\Users\***\.m2路径下,但是放在C盘下可能会有后遗症,所以大多数人选择将其放至别的盘符下.
1.找到C:\Users\14323\.m2下的settings.xml打开它
2.将第五行localRepository的路径改为你想存放的路径即可
3.第六行是阿里云的镜像.因为maven是国外的服务器,慢,添加阿里云的镜像会快很多