无法传输依赖关系,缓存在本地存储库中

Mah*_*leh 9 eclipse maven-2 m2eclipse maven m2e

我正在使用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
Run Code Online (Sandbox Code Playgroud)

我通过删除.lastUpdated文件然后清理和构建没有运气,仍然得到相同的错误,请遵循类似问题的答案,请指教.

Mah*_*leh 10

删除.lastUpdated文件和依赖关系然后再次下载后修复问题.

  • 这个文件在哪里? (5认同)

Lip*_*ang 9

您可以使用-U参数强制检查远程存储库上的更新版本和快照,并解决此问题。

其实你可以通过使用mvn -hshow Maven help来找到这个解决方案。