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

查看:161
本文介绍了我在哪里可以找到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?

I已找到一些博客

 <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?

推荐答案

更新

自2013年11月起,官方Kafka版本可在公共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存储库,但是你可以使用手动将其添加到您当地的Maven存储库中install-file命令

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中的依赖关系并从您的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天全站免登陆