找到 Maven 安装目录下的 /etc/maven/settings.xml 或用户目录下的 ~/.m2/settings.xml: 在setting.xml中添加maven镜像: <mirrors> <!-- 阿里云镜像 --> <mirror> <id>aliy