Maven 报错:Failed to read artifact descriptor for ***包
来源:互联网 发布:qq飞车舞蹈软件 编辑:程序博客网 时间:2024/06/05 06:39
Maven 报错
Failed to read artifact descriptor for org.apache.hadoop:hadoop-common:jar:2.4.0
解决方法:
打开项目后,在Intellij 右侧有个Maven projects,点开后,有个Lifecycle,再点开,可以看到clean , validate, compile, ….,右击clean,选中Run ‘project[clean]’,这里的project是我们的项目实际的名字。
等待完成之后,在同样的地方(Lifecycle)里找到install, 选中Run ‘project[install]’,这里的project同样是我们的具体项目的名字,这个过程比较久,如果有遇到哪个jar包不能下载的情况,可以手动将其放到本地的m2目录下,比如,我有个文件下载不了,以下是文件链接:
http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-plugin-2.5.jar
虽然在Intellij里下载不了(通常可能是公司或国家防火墙导致,也可能是网络原因),但我可以通过代理或VPN下载到此文件。这个时候,我就可以手动下载,然后放到相应的maven本地目录下。在这里,我可以把此文件下载之后放到以下目录:
cd ~/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.5/cp ~/Download/maven-resources-plugin-2.5.jar .
等到这个install也完成之后,找到Maven projects,点击“Reimport All Maven Projects”,这个时候,错误”Failed to ….”消失,需要的依赖开始下载。
0 0
- Maven 报错:Failed to read artifact descriptor for ***包
- Maven项目报错:Failed to read artifact descriptor for ***
- Maven项目pom.xml文件报错“ ArtifactDescriptorException: Failed to read artifact descriptor for ...”解决方法
- Maven 'failed to read artifact descriptor'
- failed to read artifact descriptor for xx
- maven Maven错误Failed to read artifact descriptor for xxx:jar 和 missing artifact maven dependency
- IntelliJ中pom.xml报错project上Failed to read artifact descriptor for xxxxxxxxx
- Failed to read artifact descriptor
- 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配置)Failed to read artifact descriptor for xxx:jar解决方法
- IntelliJ maven项目pom文件错误failed to read artifact descriptor for xx.jar问题解决办法
- Failed to read artifact descriptor进行安装maven项目出错
- Failed to read artifact descriptor--maven问题总结(能力工场)
- Failed to read artifact descriptor--maven问题总结(能力工场)
- 如何解决Maven: Failed to read artifact descriptor
- 编译vlc android 经验总结
- 循环和分支
- 字符流读取多行文件内容进行校验
- 计算机网络
- 0909 Java中连续继承中的多态问题
- Maven 报错:Failed to read artifact descriptor for ***包
- javaScript的可收缩菜单的实现
- 腾讯云服务器配置JDK和Tomcat环境
- solr系统query检索词特殊字符的处理
- Java多线程学习(吐血超详细总结)
- 今天忽然有朋友问我怎么从微信公众号里面直接打开外部app
- 无符号和有符号数的二进制数右移(有待继续整理)
- 笔试题汇总
- logback常用标签详解