汇合的Maven存储库不起作用? [英] Confluent Maven repository not working?

查看:313
本文介绍了汇合的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/

这篇关于汇合的Maven存储库不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆