修改maven的镜像源为阿里的源
windows下一般是C:\Users\你的用户名\.m2\settings.xml
Linux 下一般在/home/你的用户名/.m2/settings.xml
settings.xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
</settings>
开启语法提示忽略大小写
首先找到 settings/Editor/Code Completion
取消选中 Match Case选项即可
本文介绍如何修改Maven的镜像源为阿里云的公共仓库,以提高Maven项目的依赖下载速度。适用于Windows和Linux系统,通过编辑settings.xml文件实现。
437

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



