【问题标题】:Received fatal alert: protocol_version and 'parent.relativePath' points at wrong local POM收到致命警报:protocol_version 和“parent.relativePath”指向错误的本地 POM
【发布时间】:2020-06-01 00:07:24
【问题描述】:

我正在学习 git 项目:“https://github.com/spring-cloud/spring-cloud-zookeeper”,当我将项目导入 intellij IDEA IDE,并在终端中运行 mvn --settings .settings.xml 包时,它显示错误:

spring-cloud-zookeeper-master>mvn --settings .settings.xml package
[INFO] Scanning for projects...
Downloading: https://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-build/3.0.0.BUILD-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.springframework.cloud:spring-cloud-build:3.0.0.BUILD-SNAPSHOT/maven-metadata.xml from/to spring-snapshots (https://repo.spring.io/libs-snapsho
t-local): Received fatal alert: protocol_version
Downloading: https://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-build/3.0.0.BUILD-SNAPSHOT/spring-cloud-build-3.0.0.BUILD-SNAPSHOT.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.springframework.cloud:spring-cloud-zookeeper:3.0.0.BUILD-SNAPSHOT (D:\projects\study\spring-cloud-zookeeper-master\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not transfer artifact org.springframework.cloud:spring-cloud-build:pom:3.0.0.BUILD-SNAPSHOT from/to spring-snapshots (https://repo.spring.i
o/libs-snapshot-local): Received fatal alert: protocol_version and 'parent.relativePath' points at no local POM @ line 14, column 10 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

【问题讨论】:

  • 您解决了这个问题吗? (我在普通的 SpringBoot 应用程序中遇到了同样的错误)。

标签: spring spring-boot maven maven-3 spring-cloud


【解决方案1】:

尝试激活使用插件注册表。

【讨论】:

    猜你喜欢
    • 2013-05-08
    • 2018-02-16
    • 1970-01-01
    • 2016-07-26
    • 2019-01-02
    • 1970-01-01
    • 2018-05-02
    • 2016-06-12
    • 2018-12-08
    相关资源
    最近更新 更多