首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在非本地位置找不到项目io.confluent:kafka-rest-parent:pom:5.4.0-SNAPSHOT和'parent.relativePath‘点

在非本地位置找不到项目io.confluent:kafka-rest-parent:pom:5.4.0-SNAPSHOT和'parent.relativePath‘点
EN

Stack Overflow用户
提问于 2019-05-31 12:27:33
回答 2查看 1.8K关注 0票数 2

我正在使用maven 3运行应用程序,但是我得到了以下错误:

代码语言:javascript
复制
[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">

代码语言:javascript
复制
    <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>
EN

回答 2

Stack Overflow用户

发布于 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代理

票数 2
EN

Stack Overflow用户

发布于 2020-04-25 05:08:55

另一种解决方案是构建一个发布版本。

您可以通过运行以下命令来查找发行版

代码语言:javascript
复制
git tag --list

选择一个标签t(例如v5.2.2),然后运行

代码语言:javascript
复制
git checkout <t>

然后运行

代码语言:javascript
复制
man clean package
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56388665

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档