我只是从spring initializer下载了应用程序,并将maven项目导入到eclipse中。
我有这个错误:
错误:
Multiple markers at this line
- Non-resolvable parent POM for xxxxx:PasswordSafer:0.0.1-SNAPSHOT: org.springframework.boot:spring-boot-starter-parent:pom:2.6.3 failed to transfer from https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.6.3 from/to central (https://repo.maven.apache.org/maven2): Connection reset
- Project build error: Non-resolvable parent POM for xxxxxxx:PasswordSafer:0.0.1-SNAPSHOT: org.springframework.boot:spring-boot-starter-parent:pom:2.6.3 failed to transfer from https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.6.3 from/to central (https://repo.maven.apache.org/maven2): Connection reset and 'parent.relativePath' points at no local POM
我尝试更新Maven--〉"更新Maven项目"(强制更新快照/发布)。但仍然错误。
3条答案
按热度按时间cyvaqqii1#
您可以尝试此选项:
您还可以从Maven配置setting.xml以使用此值:
查看此链接:https://maven.apache.org/pom.html#Repositories
eufgjt7s2#
问题是防火墙,它阻止了Maven项目的更新。
ukdjmx9f3#
我有这个错误,但我发现它的最佳解决方案是从C驱动器中的用户文件夹中删除.p2文件:enter image description here