maven的pom文件报No response received after 60000错误原因

报错详情:Failure to transfer com.thoughtworks.xstream:xstream:pom:1.3.1 from http://repo.maven.apache.org/maven2 was cached in the local repository, 
resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact com.thoughtworks.xstream:xstream:pom:1.3.1
from/to central (http://repo.maven.apache.org/maven2): No response received after 60000
原因是连接不到中央仓库.导致报错.在setting中添加
  <mirror>
        <id>uk.maven.org</id>
        <mirrorOf>central</mirrorOf>
        <name>UK Central</name>
        <url>http://uk.maven.org/maven2</url>
    </mirror>
设置镜像.屏蔽中央仓库地址,替换成http://uk.maven.org/maven2
posted @ 2016-12-16 16:27  缥缈之光  阅读(407)  评论(0编辑  收藏  举报