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

时间:2022-03-06 23:58:59

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. Original error: Could not transfer artifact 
 org.apache.maven:maven-archiver:pom:2.5 from/to central (http://repo.maven.apache.org/
 maven2): No response received after 60000
今天在myeclipse新建了一个web项目并且加上了maven的支持,但是pom.xml文件第一行却出现了上面这个错误,废话不多说,解决方法就是,查看上面红色的代码错误在仓库中相应的包,这时候你会发现文件夹里只有XXX.lastudpated文件,并没有jar文件,于是我将整个文件夹都删了,在工程右键->Maven4Myeclipse->update project..,然后refresh就OK。