转移依赖项失败,已缓存在本地存储库中
问题描述:
我正在eclipse上进行maven 2项目,并且我具有m2e插件,并且在Eclipse中遇到以下错误:
I am working on maven 2 project on eclipse, and I have the m2e plugin, and I am getting the following error in 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
我遵循类似问题的答案,方法是删除 .lastUpdated 文件,然后清除构建并没有运气,仍然出现相同的错误,请告知.
I followed answers on similar problem by removing .lastUpdated file then clean and build with no luck, still getting same error, please advise.
答
在删除.lastUpdated文件和依赖项然后再次下载后,问题已解决.
problem fixed after deleting the .lastUpdated file and the dependency then downloading it again.