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 the lo...

解决方法:

  1:删除本地仓库中的.lastUpdated所以文件夹

  

2:在eclipse中更新你的maven项目;重新下载项目所需要的架包和依赖关系;

  

  

时间: 2024-12-13 03:24:39

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

maven创建web报错failure to transfer org.codehaus.plexus

failure to transfer org.codehaus.plexus:plexus:pom:2.0.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.  Origin

【maven】maven 项目 deploy 报错:Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7

======================= 参考地址: https://blog.csdn.net/liuxiao723846/article/details/52604377 报错: maven 项目 deploy  报错: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project 项目名XXX: Deployment

POM报错Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from

解决方式一: 1.查看.m2\repository\org\apache\maven\plugins\maven-resources-plugin\下maven-resources-plugin-2.6.jar文件是否存在,用rar打开是否正常的,如果都正常,则说明jar包没有问题 2.重新执行一遍maven install 即可 解决方式二: 在用Eclipse IDE for Java EE Developers进行maven项目的开发时,报错Could not calculate buil

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

pom.xm首行报错Failure to transfer org.codehaus.plexus:plexus-components:pom:1.1.20

从SVN导出一个Maven项目,pom.xml首行报错: Failure to transfer org.codehaus.plexus:plexus-components:pom:1.1.20 from http://maven.oschina.net/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of

启动Maven项目启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

tomcat在发布项目的时候没有同时发布maven依赖所添加的jar包,你需要设置一下eclipse:项目 -> 属性 -> Deployment Assembly -> Add -> Java Build Path Entries -> 选择Maven Dependencies -> Finish -> OK把对应的Maven依赖包也发布到tomcat,调试时会自动把那些jar发布到指定目录下,tomcat也能找到那些jar了.

maven项目 启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

tomcat在发布项目的时候没有同时发布maven依赖所添加的jar包,所以找不到. 解决方法:设置一下eclipse: 项目 -> properties -> Deployment Assembly -> Add -> Java Build Path Entries -> 选择Maven Dependencies -> Finish -> OK 把对应的Maven依赖包也发布到tomcat,调试时会自动把那些jar发布到指定目录下,tomcat也能找到那些jar

maven项目启动报错ContainerBase.addChild: start

有人说是web.xml配置错误导致的,但不可否认他们遇到的是这个原因,我检查了web.xml实在找不到问题在哪,然后有的说是tomcat的conf目录的server.xml文件多了一行<Context docBase="">标签的问题,都试过了,不行. 我的解决办法是,删除了本地mvn仓库的所有jar包,从新下载一遍所依赖的jar包,就解决了,解决了好几天终于弄好了,头疼,如果你们也遇到了,不妨试试这个办法吧. 原文地址:https://www.cnblogs.com/hj

maven项目 jsp报错

1 HTTP Status 500 - java.lang.NullPointerException 2 3 type Exception report 4 5 message java.lang.NullPointerException 6 7 description The server encountered an internal error that prevented it from fulfilling this request. 8 9 exception 10 11 org.a