解决: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 or updates are forced.



分析问题:查阅资料后推测是包的问题。

1、找到maven的包的位置:window->preferences->Maven->User Settings找到。 
一般是在:{user.home}.m2\repository

2、查看是哪个包的问题,例如:我的问题是org.apache.maven.plugins:maven-jar-plugin包下的2.4出了问题。 
则找到:C:\Users\Admin.m2\repository\org\apache\maven\plugins\maven-jar-plugin\2.4 删除这个包。

3、回到Eclipse右键项目选择Maven->Update Project…

一次不行则多来几次

原理:Maven包出错,删了就好…

时间: 2024-11-06 20:32:43

解决:Failure to transfer org.apache.maven.plugins:maven-jar-plugin:pom:2.4 from错误的相关文章

Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.6 的解决办法

eclipse导入mavn工程报Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.6 的解决办法: 错误信息出现在pom头的project标签,project标签内容是 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance

maven报错 Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:3.5.0 from

maven报错误,类似于: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:3.5.0 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 elaps

Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:jar:2.5.1

Mac上写了一段基于Maven的java代码. 上传Git后,在windows上pull下来,eclipse里面各种错误. ArtifactTransferException:Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:jar:2.5.1 from http://maven.oschina.net/content/groups/public was cached in the local repositor

Maven error in eclipse (pom.xml) : Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4

i wanna make web project using the Maven to import automatically all libraries that i need, so i chose "maven-archetype-webpp" after that i got this error on pom.xml file : Description Resource Path Location Type Failure to transfer org.apache.m

Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4

Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from http://uk.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of UK has elapsed or updates are forced. Or

Failure to transfer org.apache.maven:maven-core:jar

Description Resource Path Location Type Failure to transfer org.apache.maven:maven-core:jar:2.0.6 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central ha

Failure to transfer org.apache.maven:maven-archiver:pom:2.5 from http://repo.maven.apache.org/ maven2 was cached in the local repository, resolution will not be reattempted until the update interv

Failure to transfer org.apache.maven:maven-archiver:pom:2.5 from http://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. Origi

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:maven-archiver:pom:2.5 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval o

pom.xml报错: Failure to transfer org.apache.maven:maven-archiver:pom:2.5 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 fo