Failed to read artifact descriptor--maven问题总结(能力工场)
来源:互联网 发布:java list 查询条件 编辑:程序博客网 时间:2024/06/05 06:01
在开发的过程中,作为新手,经常遇到Maven下载依赖的时候,"Failed to read artifact descriptor for xxx:jar"的错误
对于这种非业务相关的问题,耽误时间非常不效率,看到网站很多博文,思路大概是这样的
思路1: 删除仓库内对应依赖的文件夹,右单击项目,Maven4MyEclipse->Update Project,在弹出的对话框中选择“Force Update Of Snapshots/Releases",然后点击“OK”。这样就会重新下载这个jar包。
思路2: 将依赖下载至本地,执行mvn install命令
如果在没有搞清楚问题的时候就鲁莽的进行上面的操作,可能不一定能很及时的解决问题.
首先我们要搞清楚"Failed to read artifact descriptor for xxx:jar"的错误的根源.
我在仓库对应依赖的文件夹下检查lastupdate文件的时候,发现最后一行是connect timed out(连接超时)
网络问题导致的下载失败,无论我们如何去按照上面的两个思路去处理,都很难解决
检查我的setting.xml,我的镜像用的是大家比较推荐的两个:
<mirror>
<id>CN</id>
<name>OSChina Central</name>
<url>http://maven.oschina.NET/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>nexus-osc-thirdparty</id>
<mirrorOf>thirdparty</mirrorOf>
<name>Nexus osc thirdparty</name>
<url>http://maven.oschina.net/content/repositories/thirdparty/</url>
</mirror>
但是,有时候,网络环境这东西你懂的,换个其他的镜像多试验一下,顺利解决
<mirror>
<id>repo2</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo2.maven.org/maven2/</url>
</mirror>
将镜像放到其他镜像的前面!
按照我的使用经验,次序靠前的镜像会被使用,你放的再多,maven也不会按照次序依次选择的
新手经验,不恰当的多多交流
- Failed to read artifact descriptor--maven问题总结(能力工场)
- Failed to read artifact descriptor--maven问题总结(能力工场)
- Maven 'failed to read artifact descriptor'
- Failed to read artifact descriptor
- Failed to read artifact descriptor进行安装maven项目出错
- Maven 报错:Failed to read artifact descriptor for ***包
- 如何解决Maven: Failed to read artifact descriptor
- Maven项目报错:Failed to read artifact descriptor for ***
- maven Maven错误Failed to read artifact descriptor for xxx:jar 和 missing artifact maven dependency
- failed to read artifact descriptor for xx
- Failed to read artifact descriptor for org.apache.maven.plugins:maven-jar-plugin:jar:2.5
- Failed to read artifact descriptor for org.apache.maven.plugins:maven-war-plugin:2.3
- Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.7
- PluginResolutionException( Failed to read artifact descriptor for org.apache.maven.plugins:)
- Maven项目pom.xml文件报错“ ArtifactDescriptorException: Failed to read artifact descriptor for ...”解决方法
- (Maven配置)Failed to read artifact descriptor for xxx:jar解决方法
- IntelliJ maven项目pom文件错误failed to read artifact descriptor for xx.jar问题解决办法
- Failed to read artifact descriptor for xxx的解决
- mysql排序不稳定,分页查询数据有重复和遗漏
- 实时错误-2147217887 以及处理时出现的SQL Server2014问题
- 环信SDK 头像、昵称、表情自定义和群聊设置的实现 一(附源码)
- 基于Windows 10系统编译FFmpeg for UWP
- BZOJ 2724 蒲公英 (分块)
- Failed to read artifact descriptor--maven问题总结(能力工场)
- QT远程调试配置
- dubbo协议约束
- 取消hibernate的双向维护,以及引用cascade="delete"
- linux 下好用的 git 代码查看工具
- 2017.7.19 Race 思考记录
- 《深入理解JVM》内存模型
- shell的概述
- JavaPDF文件转图片