Maven錯誤問題解決 Failure to transfer com.thoughtworks.xstream:xstream:jar:1.3.1 from https://repo.maven
阿新 • • 發佈:2019-01-28
錯誤問題描述
Failure to transfer com.thoughtworks.xstream:xstream:jar:1.3.1 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.3.1 from/to central (https://repo.maven.apache.org/maven2):
Network is unreachable: connect
解決辦法
1、根據提示:com.thoughtworks.xstream:xstream:jar:1.3.1,找到本地倉庫的相應jar包目錄,刪除
2、配置pom.xml依賴xstream,重新下載即可
<dependencies>
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.3.1</version>
</dependency>
</dependencies>