汇合的Maven存储库不起作用?
我需要使用Confluent kafka-avro-serializer
Maven工件.从官方指南中,我应该添加此存储库到我的Maven pom
I need to use the Confluent kafka-avro-serializer
Maven artifact. From the official guide I should add this repository to my Maven pom
<repository>
<id>confluent</id>
<url>http://packages.confluent.io/maven/</url>
</repository>
问题在于,URL http://packages.confluent.io/maven/似乎当我收到下面的回复时,目前无法正常工作
The problem is that the URL http://packages.confluent.io/maven/ seems to not work at the moment as I get the response below
<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Key>maven/</Key>
<RequestId>15E287D11E5D4DFA</RequestId>
<HostId>
QVr9lCF0y3SrQoa1Z0jDWtmxD3eJz1gAEdivauojVJ+Bexb2gB6JsMpnXc+JjF95i082hgSLJSM=
</HostId>
</Error>
事实上Maven找不到工件
In fact Maven does not find the artifact
<dependency>
<groupId>io.confluent</groupId>
<artifactId>kafka-avro-serializer</artifactId>
<version>3.1.1</version>
</dependency>
您知道可能是什么问题吗? 谢谢
Do you know what the problem could be? Thank you
该文件可用,因为直接访问该文件即可下载该文件: http ://packages.confluent.io/maven/io/confluent/kafka-avro-serializer/3.1.1/kafka-avro-serializer-3.1.1.jar
The file is available, since you can download it if you go to it directly: http://packages.confluent.io/maven/io/confluent/kafka-avro-serializer/3.1.1/kafka-avro-serializer-3.1.1.jar
您可以尝试在-maven命令中添加-U标志,以强制下载缓存的文件.
You could try adding the -U flag to your maven command to force download of cached files.
存储库的根目录无法浏览,这就是为什么您浏览到 http:/时会收到消息的原因/packages.confluent.io/maven/
The root of the repo isn't browsable which is why you are getting the message when browsing to http://packages.confluent.io/maven/