请检查maven的setting 是否有问题。
window->Perfenence->maven->User Settings里 看 Gloal Setting和User Setting是否一致。
修改成一致后解决。
如果还是有问题 ,可以在maven的安装目录的conf文件夹下 对setting.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 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <!-- 这个是配置阿里Maven镜像 --> <mirrors> <mirror> <id>aliyun</id> <name>aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors> </settings>