【发布时间】:2023-04-11 02:14:02
【问题描述】:
我正在 Eclipse 上开发 maven 2 项目,我有 m2e 插件,但在 Eclipse 中出现以下错误:
Failure to transfer com.thoughtworks.xstream:xstream:pom:1.3.1 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.thoughtworks.xstream:xstream:pom:1.3.1 from/to central (http://
repo1.maven.org/maven2): Failed to create a selector. to http://repo1.maven.org/maven2/com/thoughtworks/xstream/
xstream/1.3.1/xstream-1.3.1.pom
请告知如何修复它。
【问题讨论】:
-
你试过
-U切换到Maven吗? -
在试图弄清楚
mvn -U和 Eclipse 的“强制更新”如何工作时,我注意到这个依赖项(相同版本)仍然无法在 Eclipse 中下载。xstream-1.3.1有什么特别之处吗?
标签: eclipse maven maven-2 m2eclipse