码迷,mamicode.com
首页 > 编程语言 > 详细

解决:Failure to transfer org.apache.maven.plugins:maven-jar-plugin:pom:2.4 from错误

时间:2017-12-24 21:28:43      阅读:647      评论:0      收藏:0      [点我收藏+]

标签:tor   资料   win   查看   http   maven   cli   tran   window   

在使用Maven时出现以下错误: 
Failure to transfer org.apache.maven.plugins:maven-jar-plugin:pom:2.4 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.


分析问题:查阅资料后推测是包的问题。

1、找到maven的包的位置:window->preferences->Maven->User Settings找到。 
一般是在:{user.home}.m2\repository

2、查看是哪个包的问题,例如:我的问题是org.apache.maven.plugins:maven-jar-plugin包下的2.4出了问题。 
则找到:C:\Users\Admin.m2\repository\org\apache\maven\plugins\maven-jar-plugin\2.4 删除这个包。

3、回到Eclipse右键项目选择Maven->Update Project…

一次不行则多来几次

原理:Maven包出错,删了就好…

解决:Failure to transfer org.apache.maven.plugins:maven-jar-plugin:pom:2.4 from错误

标签:tor   资料   win   查看   http   maven   cli   tran   window   

原文地址:http://www.cnblogs.com/tv151579/p/8098978.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!