2016.6.21 maven:Failure to transfer ... from ....

问题描述:

才刚新建的工程,什么都没做,就显示pom.xml有问题,在第一行的标签上 有如下错误:

点击详情:

Failure to transfer org.apache.maven:maven-parent:pom:20 from http://repo.maven.apache.org/maven2was 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 org.apache.maven:maven-parent:pom: 20 from/to central (http://repo.maven.apache.org/maven2): null to http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/20/maven-parent-20.pom

百度了之后知道这个是更新问题(之前忘了设置maven在eclipse的配置,后来设置完了之后还是有错误):

三步:

(1)右键点击该project,选择 run as-》maven clean

(2)右键点击该project,选择 run as-》maven install

(3)右键点击该project,选择 maven-》update project

然后就可以看到错误消失了,如果没有消失,点击restart eclispe即可。

时间: 2024-11-10 14:43:21

2016.6.21 maven:Failure to transfer ... from ....的相关文章

MAVEN:Failure to transfer org.codehaus.plexus:plexus-io:jar:2.4.1

环境:MyEclipse+Maven pom.xml中有一项配置为: <plugin> <artifactId>maven-war-plugin</artifactId> <version>2.6</version> <configuration> <version>3.0</version> </configuration> </plugin> MyEclipse会报错: Failur

Maven 报错: Failure to transfer classworlds:classworlds:pom:1.1-alpha-2 from

详细错误: Failure to transfer classworlds:classworlds:pom:1.1-alpha-2 from http://localhost:8081/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates

maven项目下载报错:Failure to transfer org.apache.maven:maven-archiver:jar:x.x from https://repo.maven.apache.org/maven...

产生原因: maven在线下载时,因网速过慢或者其它网络原因,下载超时导致此错误:maven本地仓库中的某个构件如果因为网络或者其他的原因,没有下载成功或者下载被中断,将会出现一个LastUpdated的文件,这个时候,就算网络好了,也不能正常使用这个构件. 我的错误: Failure to transfer org.apache.maven:maven-core:jar:2.2.1 from https://repo.maven.apache.org/maven2 was cached in

解决:Failure to transfer org.apache.maven.plugins:maven-jar-plugin:pom:2.4 from错误

在使用Maven时出现以下错误: Failure to transfer org.apache.maven.plugins:maven-jar-plugin:pom:2.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 o

maven+eclipse:Failure to transfer

配置好了maven环境,然后在eclipse中创建maven项目,添加依赖: <dependency>  <groupId>commons-logging</groupId>  <artifactId>commons-logging</artifactId>  <version>1.1.1</version> </dependency> pom文件报错: Failure to transfer commons-

log4j的1.2.15版本,在pom.xml中的顶层project报错错误: Failure to transfer javax.jms:jms:jar:1.1 from https://maven-repository.dev.java.net/nonav/repository......

在动态网站工程中,添加了Pom依赖,当添加log4j的1.2.15版本依赖时,在pom.xml中的顶层project报错错误: Failure to transfer javax.jms:jms:jar:1.1 from https://maven-repository.dev.java.net/nonav/repository......,如下图 这是因为 https://maven-repository.dev.java.net/nonav/repository 这个域名已经无法解析了. 而

maven ArtifactTransferException: Failure to transfer

我在使用Myeclipse碰见这个错误,我没有用伺服,直接连接到maven中心. ArtifactTransferException: Failure to transfer org.apache.hadoop:hadoop-core:jar:1.1.1 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the

解决maven项目的:Failure to transfer org.apache.maven:maven-archiver:jar:x.x from https://repo.maven.apache.org/maven

导入项目的时候出现如图错误: 解决办法: 先删除本地maven缓存的架包:即找到C:\Users\Administrator\.m2\repository  目录,删除该目录下所有的文件夹文件: 然后在eclipse中更新你的maven项目:重新下载项目所需要的架包和依赖关系: 该错误产生原因: maven在线下载时,因网速过慢或者其它网络原因,下载超时导致此错误:

2016.6.21 maven使用cmd新建项目时,failed to execute goal org.apache.maven.plugins:maven-archetye-plugin:2.4:generate...

在学习maven的时候,想要新建一个maven工程,在命令行执行create或generate命令. 错误如图所示: failed to execute goal org.apache.maven.plugins:maven-archetye-plugin:2.4:generate... 解决办法: http://doc.okbase.net/Josh_Persistence/archive/192456.html 这里面提到了四种可能的原因及解决办法. 环境变量配置什么的检查就不提了. (1)