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

查看:94
本文介绍了Confluent Maven 存储库不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用 Confluent kafka-avro-serializer Maven 工件.从 official guide 我应该添加这个存储库到我的 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.

repo 的根目录不可浏览,这就是您在浏览 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/

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

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