Intellij IDEA -> Preference -> Build ->Build tools -> Maven
在User setting file 选项显示的路径下,找到settings.xml文件(如果没有,则新建一个),勾选右方的Override。
settings.xml 文件内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<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/SETTIN
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/repos
</mirror>
</mirrors>
</settings>
网友评论