Failed to execute goal on project middle-ground-app: Could not resolve dependencies for
时间: 2023-10-30 20:28:22 浏览: 87
project com.example:middle-ground-app:jar:1.0-SNAPSHOT: Failed to collect dependencies at org.springframework.boot:spring-boot-starter-web:jar:2.5.4: Failed to read artifact descriptor for org.springframework.boot:spring-boot-starter-web:jar:2.5.4: Could not transfer artifact org.springframework.boot:spring-boot-starter-web:pom:2.5.4 from/to central (https://repo.maven.apache.org/maven2): Failed to transfer file: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-web/2.5.4/spring-boot-starter-web-2.5.4.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]
This error message suggests that the project "middle-ground-app" failed to download a required dependency ("spring-boot-starter-web") from the Maven Central repository. The error message indicates that the download failed because the repository is requesting HTTPS, but the download was attempted using HTTP. To resolve this issue, you should update your Maven settings to use HTTPS when connecting to the Maven Central repository. You may need to update your settings.xml file or add the appropriate configuration to your project's pom.xml file. Alternatively, you can try running the build command again, as this error may have been caused by a temporary issue with the repository.