maven设置本地仓库和远程仓库

1.打开setting.xml文件

2.搜索localrepository,找到设置本地仓库的位置

3.将标签中的地址修改为你想要指定的仓库位置

4.搜索mirrors,定位到指定设置镜像仓库的位置

5.设置远程仓库,示例如下:




alimaven
aliyun maven
http://maven.aliyun.com/nexus/content/groups/public/
central

6.保存文件即可

posted @ 2020-04-10 21:34  指尖探戈  阅读(844)  评论(0)    收藏  举报