Could not find artifact org.springframework.boot:spring-boot-starter-web:pom:unknown in central
时间: 2023-08-27 09:19:50 浏览: 205
java版ss源码-elastic-job-spring-boot-starter:Elastic-JobSpringBoot自动集成,只需要
在创建Spring Boot工程时,你引入了org.springframework.boot的spring-boot-starter-parent和spring-boot-starter-web,但是在使用阿里云的maven仓库时,提示找不到spring-boot-starter-parent的jar包,而spring-boot-starter-web的jar包可以找到。这是因为maven仓库中没有spring-boot-starter-parent相关的jar包,所以需要在依赖中指定type为pom。你可以通过添加以下依赖来解决问题:
```xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.7</version>
<type>pom</type>
</dependency>
```
这样就可以在阿里云的maven仓库中找到并引入spring-boot-starter-parent的相关jar包了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Could not find artifact org.springframework.boot:spring-boot-starter-parent:jar](https://blog.csdn.net/a1004314120/article/details/128584548)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文