1. 程式人生 > >maven 下載jar失敗: resolution will not be reattempted until the update interval of central has elapsed or updates are forced

maven 下載jar失敗: resolution will not be reattempted until the update interval of central has elapsed or updates are forced

emp 。。 epo except resp esp failure XML could

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了!

maven 下載jar失敗: resolution will not be reattempted until the update interval of central has elapsed or updates are forced