pom 文件的project标签报错Failed to read artifact descriptor for xxx:jar

今天从github上下载了感觉不错的项目(spring boot),使用idea导入的时候发现了一个问题,在这记录一下。

报错信息如下:

pom 文件的project标签报错Failed to read artifact descriptor for xxx:jar
首先我想到的就是这个包应该是在仓库中能找到,但是由于未知原因没有下载成功。
下面是maven默认仓库中的文件:
pom 文件的project标签报错Failed to read artifact descriptor for xxx:jar
果然有错。既然默认的仓库又慢又有错,那我就只能换上自定义的仓库了。

File --> Settings

如下图:
pom 文件的project标签报错Failed to read artifact descriptor for xxx:jar
点击Apply。等待依赖下载完毕,搞定!
pom 文件的project标签报错Failed to read artifact descriptor for xxx:jar

如果 仍然报错,可以查看一下本地仓库路径下的依赖是否下载成功!