spring-boot-starter-parent not found

2023-05-20,,

项目开始的springboot版本为2.6.6

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.6</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

为了集成elasticsearch,需要更换为2.1.3版本

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.3.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

重新下载Maven依赖出现错误 Project 'org.springframework.boot:spring-boot-starter-parent:2.1.3.RELEASE' not found

查看本地Maven仓库发现依赖已经下载好了

解决办法

清理IDEA缓存,然后重启IDEA

spring-boot-starter-parent not found的相关教程结束。

《spring-boot-starter-parent not found.doc》

下载本文的Word格式文档,以方便收藏与打印。