我对 Kafka 和 Maven 还很陌生。我将 confluenceinc ( https://github.com/confluentinc/kafka-connect-storage-common ) 的官方存储库中的代码作为 Maven 项目导入到 Eclipse 中,所有项目都出现以下错误。有一个 Kafka docker 与代码在同一文件夹中运行。关于如何解决这个问题有什么想法吗? 有没有办法在 eclipse 中运行它?我需要添加什么类型的依赖项?
Project build error: Non-resolvable parent POM for io.confluent:kafka-connect-storage- common- parent:6.0.0-
SNAPSHOT: Failure to transfer io.confluent:common:pom:6.0.0-SNAPSHOT from ${confluent.maven.repo} was cached in
the local repository, resolution will not be reattempted until the update interval of confluent has elapsed or updates are
forced. Original error: Could not transfer artifact io.confluent:common:pom:6.0.0-SNAPSHOT from/to confluent ($
{confluent.maven.repo}): Cannot access ${confluent.maven.repo} with type default using the available connector
factories: AetherRepositoryConnectorFactory, BasicRepositoryConnectorFactory and 'parent.relativePath' points at
wrong local POM'
最佳答案
已回复您的 Github 问题。
SNAPSHOT 构建永远无法从 Maven Central 获得,并且 ${confluence.repo}
不需要更改。
阅读 Github wiki 中的常见问题解答。克隆并安装每个依赖项(如果您愿意,请检查最新的、稳定的(或必要的依赖项版本)分支并构建/安装每个依赖项,同时跳过测试)。
然后该项目应该构建。
关于java - io.confluence 的不可解析父 POM :kafka-connect-storage,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60960303/