Failed to read artifact descriptor for xxx:jar的问题解决
来源:互联网 发布:网络诈骗举报电话是 编辑:程序博客网 时间:2024/05/16 11:40
在开发的过程中,尤其是新手,我们经常遇到Maven下载依赖jar包的问题,也就是遇到“Failed to read artifact descriptor for xxx:jar”的错误。
对于这种非业务相关的问题,耽误时间非常不效率,而且网上的解决思路过于老套,而且还没什么用。
1)要么就是,删除仓库内对应依赖的文件夹,右单击项目,Maven4MyEclipse->Update Project,在弹出的对话框中选择“Force Update Of Snapshots/Releases",然后点击“OK”。这样就会重新下载这个jar包。
2)要么就是,将依赖下载至本地,执行mvn install命令,其实这些方法都不适用于eclipse+java的开发中,而且让人头疼。
其实,遇到“Failed to read artifact descriptor for xxx:jar”的报错,就是jar包下载失败而导致的,你可以到Maven的仓库中去查看(也就是.m2\repository那个路径下的)xxx-m2e-lastUpdated.properties文件,用记事本打开,里面描述的报错提示就是“connect timed out(连接超时)”:
那这个时候,赶紧去在eclipse指定的settings.xml文件添加mirror地址(经测试,http://repo2.maven.org/maven2/可用):
<mirror> <id>repo2</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://repo2.maven.org/maven2/</url></mirror>
最后,再回到eclipse,右击你所需要下载jar包依赖的项目,选择“Update Project” -> 勾选"Force Update of Snapshots/Releases":
点击OK之后,就开始自动下载更新,报错的提示就没有了。
- Failed to read artifact descriptor for xxx:jar的问题解决
- Failed to read artifact descriptor for xxx:jar
- Failed to read artifact descriptor for xxx:jar
- Failed to read artifact descriptor for xxx:jar
- Failed to read artifact descriptor for xxx:jar
- Failed to read artifact descriptor for xxx:jar:版本号
- Failed to read artifact descriptor for xxx:jar
- Failed to read artifact descriptor for xxx的解决
- Failed to read artifact descriptor for xxx:jar 和Missing artifact
- maven Maven错误Failed to read artifact descriptor for xxx:jar 和 missing artifact maven dependency
- (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 xx
- Failed to read artifact descriptorfor xxx:jar
- Failed to read artifact descriptor for org.apache.maven.plugins:maven-jar-plugin:jar:2.5
- Failed to read artifact descriptor
- Failed to read artifact descriptor for com.fasterxml.jackson.core:jackson-databind:jar:2.9.0-SNAPSHO
- Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.7
- MyEclipse快捷键
- Objective-C中的instancetype和id区别
- 更新VS2017后,各种报错
- Maven学习总结(19)——Maven+Nexus+Myeclipse集成
- 多台web服务器之间共享session
- Failed to read artifact descriptor for xxx:jar的问题解决
- 理解ASP.NET MVC底层运行机制
- ubuntu 安装pycharm
- android用MediaCodeC将opengl绘制内容录制为一个mp4
- 关于百度特效“黑洞”的css3,自己记录一下
- QColor类的使用
- linux defunct僵尸进程
- Arduino-开发入门2-Arduino蓝牙模块与Android实现通信
- 概率论与自然语言处理1