我正在使用maven 3运行应用程序,但是我得到了以下错误:
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for io.confluent:kafka-rest:[unknown-version]: Could not find artifact io.confluent:kafka-rest-parent:pom:5.4.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 7, column 12
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project io.confluent:kafka-rest:[unknown-version] (D:\Self\kafka-rest\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for io.confluent:kafka-rest:[unknown-version]: Could not find artifact io.confluent:kafka-rest-parent:pom:5.4.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 7, column 12 -> [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此处共享pom .xml父元素
">http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.confluent</groupId>
<artifactId>kafka-rest-parent</artifactId>
<version>5.4.0-SNAPSHOT</version>
</parent>
<artifactId>kafka-rest</artifactId>
<packaging>jar</packaging>
<name>kafka-rest</name>
<description>
The Kafka REST Proxy provides a RESTful interface to a Kafka cluster, making it easy to
produce and consume messages, view the state of the cluster, and perform administrative
actions without using the native Kafka protocol or clients.
</description>发布于 2019-06-01 14:15:17
为了从主分支构建任何合流项目,您必须构建其父依赖项。您在可下载位置找不到快照
这意味着查看Kafka源代码,使用Gradle安装其当前快照,然后是Confluent common library,然后是Confluent Rest utils,然后是Schema Registry (用于Avro转换器),最后是,最后是。
https://github.com/confluentinc/kafka-rest/wiki/FAQ
如果您只想运行REST代理,那么下载最新的Confluent平台并配置rest代理配置文件,使其指向任何现有的Kafka代理
发布于 2020-04-25 05:08:55
另一种解决方案是构建一个发布版本。
您可以通过运行以下命令来查找发行版
git tag --list选择一个标签t(例如v5.2.2),然后运行
git checkout <t>然后运行
man clean packagehttps://stackoverflow.com/questions/56388665
复制相似问题