因为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的依赖。

如下图所示:

右键点击项目,然后

maven 的 pom.xml 文件报错:ArtifactTransferException: Failure to transfer

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

maven 的 pom.xml 文件报错:ArtifactTransferException: Failure to transfer

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-19
  • 2022-12-23
  • 2021-12-27
  • 2021-09-29
  • 2022-12-23
猜你喜欢
  • 2021-09-17
  • 2021-10-10
  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
相关资源
相似解决方案