我在哪里可以找到 kafka 的 Maven 存储库? [英] where can I find maven repository for kafka?

查看:55
本文介绍了我在哪里可以找到 kafka 的 Maven 存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想尝试 kafka 0.8(据我所知它已经发布了).但是在哪里可以找到 kafka maven 仓库.

I want to try kafka 0.8 (as I understand it is already released). But where can I find the kafka maven repository.

我应该添加什么额外的存储库网址?

And what additional repository url should I add?

我找到了一些带有

 <dependency>
    <groupId>org.apache.kafka</groupId>
    <artifactId>kafka_2.8.0</artifactId>
    <version>0.8.0-SHA</version>
 </dependency>

但它不起作用.我正在寻找适当的 Maven 依赖项.或者我应该从 git 中检出它并部署在我们的内部工件中?

but it is not works. I'm looking for proper maven dependency. Or should I checkout it from git and deploy in our internal artifactory?

推荐答案

UPDATE

自 2013 年 11 月起,可以在 公共 Maven 存储库,2015年3月最新版本为0.8.2.1:

Since November 2013 official Kafka releases can be found on public Maven repository, the latest version in March 2015 being 0.8.2.1:

<dependency>
  <groupId>org.apache.kafka</groupId>
  <artifactId>kafka_2.10</artifactId>
  <version>0.8.2.1</version>
</dependency>

如果您创建了下面详述的 not.released:kafka 工件,您可以删除它来自本地存储库.

If you created the not.released:kafka artifact detailed below any more you can remove it from the local repository.

原始答案

Kafka 尚未发布到公共 Maven 存储库,但您可以使用 安装文件命令:

Kafka is not released yet to a public Maven repository, but you can add it to your local Maven repository by hand with the install-file command:

mvn install:install-file -Dpackaging=jar -DgroupId=not.released
    -DartifactId=kafka -Dversion=0.8.0 -Dfile=kafka.jar

上面的命令行需要当前工作目录中的 kafka.jar 文件.安装后,您可以使用它:

The command line above expects kafka.jar file in the current working directory. Once installed you can use it with:

<dependency>
  <groupId>not.released</groupId>
  <artifactId>kafka</artifactId>
  <version>0.8.0</version>
</dependency>

一旦他们发布了 Kafka,您就可以更改 POM 中的依赖项,并从本地存储库中删除/卸载此文件.

Once they release Kafka you can just change the dependency in your POMs and remove / uninstall this file from your local repository.

这篇关于我在哪里可以找到 kafka 的 Maven 存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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