原文链接


出现这个问题的原因:

    jar包下载失败。

过程:

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

解决方法:

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

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

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

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

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

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

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

相关文章:

  • 2021-06-30
  • 2022-12-23
  • 2021-05-05
  • 2021-09-26
  • 2021-07-18
  • 2021-09-10
猜你喜欢
  • 2021-12-05
相关资源
相似解决方案