zoukankan      html  css  js  c++  java
  • maven 的 pom.xml 文件报错:ArtifactTransferException: Failure to transfer

    因为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包了。

  • 相关阅读:
    c++ range库
    差分数组
    简单比较一下C++中的引用和指针
    数字图像处理中一张常用图片
    内存池与内存块
    SmartPtr
    Allocator
    Java学习第12天
    Java学习第11天
    Java学习第10天
  • 原文地址:https://www.cnblogs.com/digdeep/p/4710959.html
Copyright © 2011-2022 走看看