maven的默认路径在用户目录的.m2文件夹里面(C:Usersadmin.m2),当maven本地依赖比较多的时候,会造成C盘文件较大,需要修改maven的本地仓库的路径。
步骤如下:
打开maven的 c o n f color{red}conf conf文件夹,找到里面的 s e t t i n g . x m l color{red}setting.xml setting.xml文件:
2. 在setting.xml配置文件的 < s e t t i n g s > color{red}
F:develop_toolsmaven
epository
如下:

maven的默认镜像是http://my.repository.com/repo/path,服务器在国外,一般项目构建如果使用这个镜像会十分缓慢,所以需要采用国内的maven镜像。
步骤如下:
打开maven的 c o n f color{red}conf conf文件夹,找到里面的 s e t t i n g . x m l color{red}setting.xml setting.xml文件:
2. 在setting.xml配置文件的 < m i r r o r s > color{red}
nexus-aliyun
central
Nexus aliyun
http://maven.aliyun.com/nexus/content/groups/public
如下,即可配置成国内的maven的阿里云镜像
