IntelliJ maven项目pom文件错误failed to read artifact descriptor for xx.jar问题解决办法
来源:互联网 发布:汽车加油优惠软件 编辑:程序博客网 时间:2024/05/29 20:01
使用pom配置项目依赖包的时候遇到这个问题
但是dependency经过修改后没有错(注意是修改后,之前把version写成了scope),如下
新建一个dependency的时候MAVEN会自动获取相关的jar,如果没有就会自己去下载。首先我看了一下External Libraries里面并没有mybatis,然后通过菜单File-Project Structure打开查看libraries发现mybatis的jar被划上了红线,说明mybatis的路径下存在问题,打开路径一看,jar包根本没有下载下来。。
最后通过这个办法成功解决:
1. 删除Project Structure-Libraries中划了红线的那个jar,同时删除对应目录下的文件和文件夹,这里我删除了原来的MyBatis目录。
2. 打开IntelliJ 右边的Maven Project,点击左上角那个刷新的按钮(Reimport All Maven Projects),注意请保证处于联网状态,这时候Maven会自动下载相关的依赖包。
3.等待下载完毕,OK解决。
这样的问题大多是由于依赖包没有被正确地下载和安装到指定的路径,仔细回想自己之前在pom内的dependency中相关的参数和标签有没有写错,去看一下那个目录下有没有jar文件。
阅读全文
0 0
- IntelliJ maven项目pom文件错误failed to read artifact descriptor for xx.jar问题解决办法
- Maven项目pom.xml文件报错“ ArtifactDescriptorException: 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 xxx:jar的问题解决
- Maven项目报错:Failed to read artifact descriptor for ***
- IntelliJ中pom.xml报错project上Failed to read artifact descriptor for xxxxxxxxx
- 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-resources-plugin:jar:2.7
- 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
- (Maven配置)Failed to read artifact descriptor for xxx:jar解决方法
- Maven 报错:Failed to read artifact descriptor for ***包
- Failed to read artifact descriptor进行安装maven项目出错
- springMVC-笔记003-spring配置文件
- 欢迎使用CSDN-markdown编辑器
- hibernate的load()和get()的区别
- unexpected token: * near line 1, column 8 [select * from t_one_buy where 1=1 order by create_date de
- hibernate的二级缓存
- IntelliJ maven项目pom文件错误failed to read artifact descriptor for xx.jar问题解决办法
- java变量命名规则
- NFC (一)概述
- idea 15 获取activation code
- Hibernate中的update()和saveOrUpdate()的区别.
- **论NOIP之"不该错的"**(c++语言)
- springMVC-笔记004-测试用的pom.xml
- 一次完整的HTTP事务是怎样一个过程?
- NFC (二)读写MifareClassic协议的NFC卡