1.在maven的setting.xml中添加
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
2.然后删除repository\org\apache\maven\plugins下相关的文件
3.将项目updata进行更新一下

本文介绍如何通过修改Maven的setting.xml文件,添加阿里云镜像以提高依赖下载速度,并清理旧缓存确保项目更新。具体步骤包括:1) 在setting.xml中添加阿里云maven镜像配置;2) 删除repository下特定文件夹内的缓存;3) 更新项目。

1万+

被折叠的 条评论
为什么被折叠?



