admin管理员组文章数量:1304247
I keep getting could not resolve the artifact. I have gone through all the confluent documentation and checked a lot of answers on stack overflow and none of the approaches suggested was able to help me with this issue.
I mentioned the confluent repository in my build.gradle file
maven {
url '/'
}
This is the dependency I am mentioning in build.gradle
:
implementation 'io.confluent:kafka-avro-serializer:7.0.1'
I don't know what else I need to do to implement the package. This is the error I keep getting whenever I try the build:
Could not resolve io.confluent:kafka-avro-serializer:7.0.1 for :worker:test
I keep getting could not resolve the artifact. I have gone through all the confluent documentation and checked a lot of answers on stack overflow and none of the approaches suggested was able to help me with this issue.
I mentioned the confluent repository in my build.gradle file
maven {
url 'https://packages.confluent.io/maven/'
}
This is the dependency I am mentioning in build.gradle
:
implementation 'io.confluent:kafka-avro-serializer:7.0.1'
I don't know what else I need to do to implement the package. This is the error I keep getting whenever I try the build:
Could not resolve io.confluent:kafka-avro-serializer:7.0.1 for :worker:test
1 Answer
Reset to default 0You have to do more than just 'mention' it :-)
You have to put it in a 'repositories' block:
repositories {
mavenCentral()
maven {
url = 'https://packages.confluent.io/maven/'
}
}
See https://docs.gradle./current/userguide/declaring_repositories_basics.html
本文标签: javaHow to fix could not resolve ioconfluentkafkaavroserializer780Stack Overflow
版权声明:本文标题:java - How to fix: could not resolve io.confluent:kafka-avro-serializer:7.8.0 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741781969a2397363.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论