Cannot resolve org.springframework.boot:spring-boot-starter-parent:3.1.3
时间: 2023-10-01 10:07:03 浏览: 343
报错信息显示无法下载org.springframework.boot:spring-boot-starter-parent:2.2.7.RELEASE的依赖。而你希望解决的问题是无法解析org.springframework.boot:spring-boot-starter-parent:3.1.3的依赖。
根据提供的引用内容,可以看出解决这个问题的方法是在pom文件中添加一个额外的repositories和pluginRepositories的配置。这个配置指定了一个URL来下载所需的jar包。具体的配置如下所示:
```xml
<!-- 解决 spring-boot jar 包下载问题 -->
<repositories>
<repository>
<id>spring-snapshots</id>
<url>https://repo.spring.io/libs-snapshot</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-snapshots</id>
<url>https://repo.spring.io/libs-snapshot</url>
</pluginRepository>
</pluginRepositories>
```
通过添加这个配置,你可以解决无法解析org.springframework.boot:spring-boot-starter-parent:3.1.3的依赖的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [org.springframework.boot:spring-boot-starter-parent:pom:2.2.7.RELEASE failed to transfer问题](https://blog.csdn.net/qq_45225798/article/details/125928371)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [SpringBoot问题2:org.springframework.boot:spring-boot-starter-parent’ not found](https://blog.csdn.net/weixin_51330376/article/details/127472422)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文