digdeep

凡是过去,皆是序幕。Read the fucking manual and source code.

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

因为maven下载依赖jar包时,特别慢,所以取消了下载过程,再次打开eclipse时,maven的pom.xml文件报错如下:

ArtifactTransferException: Failure to transfer xom:xom:jar:1.2.5 
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 xom:xom:jar:1.2.5 
from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled.

解决办法,上面也提到了:updates are forced,强制刷新maven的依赖。

如下图所示:

右键点击项目,然后

然后勾上 Forse update ....,然后maven就会重新自动下载依赖jar包了。

 

posted on 2015-08-07 15:36  digdeep  阅读(1505)  评论(0编辑  收藏  举报
不懂数据库和Web安全的架构师不是一个好的程序员。