Could not find artifact org.springframework.boot:spring-boot-starter-parent:jar:2.3.5.RELEASE in central
时间: 2023-12-04 15:41:19 浏览: 82
您好!根据提供的引用内容,您遇到了Maven构建项目时找不到依赖的问题。具体来说,您需要的依赖是org.springframework.boot:spring-boot-starter-parent:jar:2.3.5.RELEASE,但是在Maven的中央仓库(central)中找不到该依赖。
解决该问题的方法是检查您的Maven配置文件(pom.xml)中是否正确地指定了Spring Boot的版本号,并且检查您的网络连接是否正常。如果您的网络连接正常,但是仍然找不到依赖,可以尝试更换Maven的镜像源,或者手动将该依赖添加到本地仓库中。
以下是手动将依赖添加到本地仓库的步骤:
1. 下载所需的依赖包(spring-boot-starter-parent-2.3.5.RELEASE.jar)并保存到本地文件系统中。
2. 打开命令行工具,进入依赖包所在的目录。
3. 执行以下命令将依赖包安装到本地仓库中:
```shell
mvn install:install-file -Dfile=spring-boot-starter-parent-2.3.5.RELEASE.jar -DgroupId=org.springframework.boot -DartifactId=spring-boot-starter-parent -Dversion=2.3.5.RELEASE -Dpackaging=jar
```
4. 等待命令执行完成后,再次执行您的Maven构建命令即可。
相关问题
Could not find artifact org.springframework.boot:spring-boot-starter-parent
这个问题是因为在maven仓库中找不到org.springframework.boot:spring-boot-starter-parent这个依赖的jar包。解决这个问题的方法是在依赖中指定type为pom。具体操作是在pom.xml文件中添加以下代码:
```
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.7</version>
<type>pom</type>
</dependency>
```
这样就可以解决找不到spring-boot-starter-parent的问题了。如果还是无法解决,可能是maven仓库中没有该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^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:3.1.3.RELEASE in central
在您提供的引文中,没有找到关于"Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:3.1.3.RELEASE in central"的相关信息。请您再次确认您提供的引文内容是否正确,并提供更多相关的上下文信息,以便我能够给出准确的答案。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.4.RELEASE](https://blog.csdn.net/weixin_45678130/article/details/113940661)[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* *3* [Could not find artifact org.springframework.boot:spring-boot-starter-parent](https://blog.csdn.net/lylovejava0/article/details/129686203)[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 ]
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![jar](https://img-home.csdnimg.cn/images/20210720083455.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)