【发布时间】:2018-06-08 20:43:11
【问题描述】:
我在pom.xml 文件中收到以下错误消息,请任何人帮助我解决此问题。我已经在谷歌搜索了解决方案,但没有找到解决方案。
错误
Failure to transfer com.thoughtworks.xstream:xstream:pom: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:pom:1.3.1 from/to
central (https://repo.maven.apache.org/maven2): The operation was cancelled.
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.maven</groupId>
<artifactId>helloworld</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>helloworld Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>helloworld</finalName>
</build>
</project>
【问题讨论】:
-
哪里出错了?
-
抱歉,请立即查看。
-
我想这会对你有所帮助stackoverflow.com/a/10685698/3143670
-
这个问题是由于 settings.xml 没有正确定义。请参考stackoverflow.com/questions/15334394/…
-
我已经检查了那个答案,但是我在哪里可以找到 .lastUpdated 文件
标签: java eclipse maven web-applications