Failed to read artifact descriptor for org.springframework.boot:spring-boot--***解决方法

用Spring boot时经常会遇到

Failed to read artifact descriptor for org.springframework.boot:spring-boot-**.jar 问题

意思是 找不到这个jar。

解决思路:

1:看看本地maven库中对应的目录有没有这个 jar,如果没有,删除对应的版本目录,重新reimport项目,让对应的包重新去下载。

2:如果还是报一样的错误,那看看是不是中心服务器上无对应的jar,试试换换中心服务器。

比如我之前用的是:

 <mirror>
        <id>alimaven</id>
        <mirrorOf>central</mirrorOf>
        <name>aliyun maven</name>
        <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
    </mirror>

发现这个上面spring-boot-parent-2.2.5的没有,用了:

        <mirror>
            <id>alimaven</id>
            <name>aliyun maven</name>
            <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
            <mirrorOf>central</mirrorOf>
        </mirror>

这个之后,发现就可以了

发布了60 篇原创文章 · 获赞 6 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/xiaoluo5238/article/details/104801854
今日推荐