zoukankan      html  css  js  c++  java
  • maven 下载jar失败: resolution will not be reattempted until the update interval of central has elapsed or updates are forced

    Multiple annotations found at this line:

    - ArtifactTransferException: Failure to transfer com.fasterxml.jackson.core:jackson-databind:jar:2.9.0.pr3 from http://
    repo1.maven.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 com.fasterxml.jackson.core:jackson-
    databind:jar:2.9.0.pr3 from/to central (http://repo1.maven.org/maven2): No response received after 60000
    - Missing artifact com.fasterxml.jackson.core:jackson-databind:jar:2.9.0.pr3

    其实已经说的很清楚了。

    因为 那个 2.9.pr3.jar 已经缓存在了本地,  所以下载(transfer )失败。 只有过了指定的时间间隔, 或 强制更新, 才会去重新 解析。

    —— resolution will not be reattempted until the update interval of 
    central has elapsed or updates are forced

    那么, 把 jackson-databind-2.9.0.pr3.jar.lastUpdated 删除后, maven 就会去重新下载。

    修改 pom, (增加了一空行), 还是不行。。。

    Multiple annotations found at this line:
    - Missing artifact com.fasterxml.jackson.core:jackson-databind:jar:2.9.0.pr3
    - ArtifactTransferException: Could not transfer artifact com.fasterxml.jackson.core:jackson-databind:jar:2.9.0.pr3 
    from/to central (http://repo1.maven.org/maven2): No response received after 60000

    手动将jackson-databind-2.9.0.pr3.jar 下载到本地, 放到 mvn 仓库中,  再次修改 pom, ok了!

  • 相关阅读:
    面对一个全新的环境,作为一个Mysql DBA,首先应该了解什么?
    Puppet学习之puppet的安装和配置
    Puppet学习之文件管理
    AJAx在windows 2003 系统下没有响应
    如何学习jquery
    系统底层图书推荐
    Jquery+Aspx实现Ajax得不到响应
    如何深入学习asp.net
    asp.net精华文章推荐
    爱恨交加的asp.net服务器控件
  • 原文地址:https://www.cnblogs.com/FlyAway2013/p/6922309.html
Copyright © 2011-2022 走看看