ERROR:Failure to transfer com.thoughtworks.xstream:xstream:jar:1.4.4 from https://repo.maven.apache.

错误描述:Failure to transfer com.thoughtworks.xstream:xstream:jar:1.4.4 from https://repo.maven.apache.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:jar:1.4.4 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.

大概意思:未能将com.thoughtworks.xstream:xstream:jar:1.4.4从https://repo.maven.apache.org/maven2缓存到本地存储库中,在central的更新间隔过期或强制更新之前,不会重新尝试解析。原始错误:无法将工件com.thoughtworks.xstream:xstream:jar:1.4.4从/转移到中心(https://repo.maven.apache.org/maven2):操作被取消。

这里首先要注意:eclipse是否配置没有改到你的maven安装目录下,而是默认的.m2目录下。这里需要配置

 ERROR:Failure to transfer com.thoughtworks.xstream:xstream:jar:1.4.4 from https://repo.maven.apache.

解决办法是删除maven repository(maven本地库)com.thoughtworks.xstream的xstream文件夹,然后重新maven-update project就能解决问题。