请检查maven的setting 是否有问题。
window->Perfenence->maven->User Settings里 看 Gloal Setting和User Setting是否一致。html
修改为一致后解决。apache
若是仍是有问题 ,能够在maven的安装目录的conf文件夹下 对setting.xml加入阿里的镜像。maven
这样提升下载速度。url
<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>