where can I find maven repository for kafka?

前端 未结 7 2022
青春惊慌失措
青春惊慌失措 2021-02-09 14:11

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?

相关标签:
7条回答
  • 2021-02-09 14:45

    Just go to http://mvnrepository.com/artifact/org.apache.kafka and choose from the list kafka repository matching to your version.

    0 讨论(0)
  • 2021-02-09 14:46

    Here is another clue:

    <dependency>
        <groupId>com.sksamuel.kafka</groupId>
        <artifactId>kafka_2.10</artifactId>
        <version>0.8.0-beta1</version>
    </dependency>
    
    0 讨论(0)
  • 2021-02-09 14:53

    As of December 2013, Kafka 0.8 Final was released and is available under the following definition:

    <dependency>
      <groupId>org.apache.kafka</groupId>
      <artifactId>kafka_2.10</artifactId>
      <version>0.8.0</version>
    </dependency>
    
    0 讨论(0)
  • 2021-02-09 15:00

    UPDATE

    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>
    

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


    Original Answer

    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
    

    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>
    

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

    0 讨论(0)
  • 2021-02-09 15:04
        <dependency>
            <groupId>org.apache.kafka</groupId>
            <artifactId>kafka_2.9.2</artifactId>
            <version>0.8.0-beta1</version>
        </dependency>
    
    0 讨论(0)
  • 2021-02-09 15:07

    You can find all the realease version here:

    http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.apache.kafka%22

    0 讨论(0)
提交回复
热议问题