0

我正在尝试使用 Netbeans 向导创建 Spring Boot 应用程序。但是,我在创建后立即收到错误。

  Downloading: http://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.2.4.RELEASE/spring-boot-starter-parent-2.2.4.RELEASE.pom

 The build could not read 1 project -> [Help 1]

 The project com.example:demo:0.0.1-SNAPSHOT (C:\Users\me\application\pom.xml) has 1 error
 Non-resolvable parent POM: Could not transfer artifact 
org.springframework.boot:spring-boot-starter-parent:pom:2.2.4.RELEASE from/to central 
  (http://repo.maven.apache.org/maven2): Failed to transfer file: 
  http://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter- 
  parent/2.2.4.RELEASE/spring-boot-starter-parent-2.2.4.RELEASE.pom. Return code is: 
501 , ReasonPhrase:HTTPS Required. and 'parent.relativePath' points at wrong local POM @ line 5, column 10 -> [Help 2]

    To see the full stack trace of the errors, re-run Maven with the -e switch.
     Re-run Maven using the -X switch to enable full debug logging.

   For more information about the errors and possible solutions, please read the 
  following articles:
  [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

所以,Maven 没有进入中央存储库,但谁能告诉我这是为什么?

4

0 回答 0