myeclipse2016创建maven项目第一行报错 Failure to transfer com.thoughtworks.xstream:xstream:jar:1.3.1

来源:互联网 发布:乐嘉性格色彩测试算法 编辑:程序博客网 时间:2024/05/18 02:46

小红叉显示如下:
Failure to transfer com.thoughtworks.xstream:xstream:pom:1.3.1 from https://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 (https://repo.maven.apache.org/maven2): connect  timed out


金山词霸翻译后,大意如下:
在缓存本地仓库中没有找到插件com.thoughtworks.xstream:xstream:jar:1.3.1,在没有解决这个问题之前,是不会去从Nexus代理的中央仓库上去执行更新下载。



如何解决:
1、根据提示:com.thoughtworks.xstream:xstream:jar:1.3.1,找到本地仓库的相应jar包目录,删除
(maven的默认本地仓库在用户的.m2文件下,此目录为下图)





2、配置pom.xml依赖xstream,重新下载即可

<dependencies>     <dependency>          <groupId>com.thoughtworks.xstream</groupId>             <artifactId>xstream</artifactId>           <version>1.3.1</version>      </dependency></dependencies>


0 0
原创粉丝点击