无法创建 KSQL UDF jar

Can't create KSQL UDF jar

我为KSQL实现了一个UDF(User-Defined-Function),并根据https://docs.confluent.io/current/ksql/docs/developer-guide/udf.html

配置了Maven pom.xml文件

当我尝试使用 mvn clean package 创建 jar 文件时,我 运行 出现以下错误:

[ERROR] Failed to execute goal on project CustomUDF: Could not resolve dependencies for project XXXX:CustomUDF:jar:1.0-SNAPSHOT: Failure to find kafka-avro-confluent:kafka-avro-confluent:jar:0.1.0 in http://packages.confluent.io/maven/ was cached in the local repository, resolution will not be reattempted until the update interval of confluent has elapsed or updates are forced -> [Help 1]

我在架构注册表中发现了一个相关问题 GitHub 常见问题解答: https://github.com/confluentinc/schema-registry/wiki/FAQ#when-i-try-to-compile-i-get-an-error-about-a-missing-snapshot-dependency

这是解决我的错误的正确方法吗?我尝试按照说明构建依赖项,但 ./gradlew installAll 只会导致更多错误(如果这是修复我的错误的正确方法,我可以分享)。

"Alternatively, use a release tag (e.g. v3.2.0) as the basis of a new development branch."具体是什么意思?这是一个合适的选择吗?

更新:我可以通过直接使用 IntelliJ 而不是 shell 命令来创建 jar 文件:

我打开 Maven window 并选择 My Project name -> Lifecycle -> install -> Run Maven Build,它在我的 IntelliJ 项目文件夹的目标子文件夹中创建了 jar。

之后我按照正常的 KSQL UDF 部署步骤 (https://docs.confluent.io/current/ksql/docs/developer-guide/udf.html#deploying) 一切正常。