Получено фатальное предупреждение: protocol_version и 'parent.relativePath' указывают на неправильный локальный POM - PullRequest
0 голосов
/ 17 февраля 2020

Я учусь на git проектах: "https://github.com/spring-cloud/spring-cloud-zookeeper", когда я импортирую проект в IDE intellij idea и запускаю пакет 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

enter image description here

...