千磨万击还坚劲,任尔东西南北风。这篇文章主要讲述eclipse webapp中的pom.xml文件出错相关的知识,希望能为你提供帮助。
【eclipse webapp中的pom.xml文件出错】我在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.hml
<
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>
答案我通过删除本地仓库中相应的下载工件目录失败来修复此问题。这样下次它会自动下载。
推荐阅读
- 对于任何不匹配的URL,Jetty ConstraintMapping()
- 如何在webapp中创建子域用户帐户
- webapp2 - 如何反转模板中的URL()
- java web-application初始化和关闭
- 如何在Appsource.Microsoft.com上发布“Web App”()
- 如何在watch app上访问PFUser.Current()
- Android - 解析查询.include(“key”)不返回完整的ParseObject详细信息
- android,在离线模式下保存文件(parse.com)
- 图像捕获,保存文件... Android / Parse