Failed to read artifact descriptor for xxx:jar的问题解决

原文链接


出现这个问题的原因:

    jar包下载失败。

过程:

    尝试过Maven->Update Project,甚至删除并重新搭建工程,仍然丝毫没有作用。

解决方法:

    1.在eclipse指定的settings.xml文件添加mirror地址

<mirror>
  <id>repo2id>
  <mirrorOf>centralmirrorOf>
  <name>Human Readable Name for this Mirror.name>
  <url>http://repo2.maven.org/maven2/url>
  mirror>

Failed to read artifact descriptor for xxx:jar的问题解决_第1张图片

2.回到eclipse,右击你所需要下载jar包依赖的项目,选择“Update Project” -> 勾选"Force Update of Snapshots/Releases"

Failed to read artifact descriptor for xxx:jar的问题解决_第2张图片

Failed to read artifact descriptor for xxx:jar的问题解决_第3张图片

等待一会,更新完就发现不报错啦!

你可能感兴趣的:(maven,eclipse,maven)