maven报错(http://repo.maven.apache.org/maven2): 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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM