在setting文件中配置阿里云镜像仓库: 1234567891011121314<mirrors> <!-- --> <mirror> <!-- mirror --> <id>nexus-aliyun</id> <!-- --> <mirrorOf>central</mirrorOf> <!-- --> <name>Nexus aliyun</name> <!-- URL --> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror></mirrors>