idea中maven项目报错Failed to read artifact descriptor for xxx
问题:项目中的pom.xml报错,具体如下点开more还会有下面这句话Inspection info: Inspects a Maven model for resolution problems.解决方法:File->Settings->Build,Executing,Deployment->Maven把User settings file...
·
问题:
项目中的pom.xml报错,具体如下
点开more还会有下面这句话
Inspection info: Inspects a Maven model for resolution problems.
解决方法:
File->Settings->Build,Executing,Deployment->Maven
把User settings file改成你的maven安装目录下conf\settings.xml
右键项目 maven->reimport
reimport之后就没有再报错了
出错原因分析:
原先settings中的user settings file路径并不是如上图所示,maven没有按照这个路径的配置文件运行。改了路径之后,maven就能按照我配置的镜像把文件下载下来了(maven配置镜像的方法百度就有)。我把划红线的三个地方都改了,理论上只改settings file的路径就可以了。
第一篇博客,希望能帮助到大家。
更多推荐
已为社区贡献1条内容
所有评论(0)