找到idea安装目录
/IntelliJ IDEA/plugins/maven/lib/maven3/conf/settings.xml
搜索:mirrors
添加到mirrors标签里
<mirrors><mirror> <id>central</id> <mirrorOf>central</mirrorOf> <url>https://maven.aliyun.com/repository/public</url></mirror>...</mirrors>
/IntelliJ IDEA/plugins/maven/lib/maven3/conf/settings.xml
添加到mirrors标签里
<mirrors><mirror> <id>central</id> <mirrorOf>central</mirrorOf> <url>https://maven.aliyun.com/repository/public</url></mirror>...</mirrors>