Maven无法从中央存储库加载依赖项
我正在尝试使用Netbeans向导创建Spring启动应用程序。但是,我在创建之后立即得到一个错误Maven无法从中央存储库加载依赖项,maven,netbeans,repository,central,Maven,Netbeans,Repository,Central,我正在尝试使用Netbeans向导创建Spring启动应用程序。但是,我在创建之后立即得到一个错误 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 -
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无法访问中央存储库,但有人能告诉我为什么会这样吗?central只能通过https访问,不再通过http访问。我强烈建议升级您的Maven版本……我使用的是Netbeans Maven插件。我应该不使用它吗?要么您需要配置Netbeans向导以使用https,要么升级到新版本。@javatar,可能重复,请查看新的Netbeans。