Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.3.4 in central
时间: 2023-10-18 14:26:59 浏览: 104
The error message "Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.3.4 in central" indicates that the requested artifact (spring-boot-starter-parent version 2.3.4) could not be found in the Maven Central Repository.
There could be a few reasons for this issue:
1. Network connectivity: Check your internet connection to ensure that your system can access the Maven Central Repository.
2. Incorrect dependency coordinates: Confirm that you have specified the correct group ID, artifact ID, and version for the dependency in your project's pom.xml file.
3. Temporary unavailability: Sometimes, certain artifacts may not be available temporarily in the Maven Central Repository. In such cases, you can try again later to see if the artifact becomes available.
To resolve this issue, you can try the following steps:
1. Clear your local Maven repository: Delete the .m2 folder in your user directory (e.g., C:\Users\YourUserName\.m2) and then rebuild your project.
2. Update your dependency versions: Check if there is a newer version of the spring-boot-starter-parent available and update the version in your pom.xml accordingly.
3. Use a different repository: If the artifact is not available in the Maven Central Repository, you can check if it is hosted in a different repository. You can add the repository URL to your pom.xml file under the <repositories> section.
Example:
```xml
<repositories>
<repository>
<id>spring-milestone</id>
<url>https://repo.spring.io/milestone</url>
</repository>
</repositories>
```
Please note that the specific steps to resolve this issue may vary depending on your project setup and configuration.