在合流存储库中找不到kafka库

ws51t4hk  于 2021-06-07  发布在  Kafka
关注(0)|答案(1)|浏览(376)

我使用的是confluent,根据官方文档,我只需要在pom.xml中进行如下配置:

<repositories>
        <repository>
            <id>confluent</id>
            <url>http://packages.confluent.io/maven/</url>
        </repository>
        <!-- further repository entries here -->
</repositories>

<dependencies>
       <dependency>
            <groupId>org.apache.kafka</groupId>
            <artifactId>kafka_2.11</artifactId>
            <!-- For CP 3.1.0 -->
            <version>0.10.1.0-cp1</version>
        </dependency>
</dependencies>

但是Kafka2.11版本0.10.1.0-cp1似乎不存在。网站http://packages.confluent.io/maven/ 也联系不上。我怎样才能得到它?

ovfsdjhp

ovfsdjhp1#

我正在使用以下maven Dependency,它对我很好:

<dependency>
            <groupId>org.apache.kafka</groupId>
            <artifactId>connect-api</artifactId>
            <version>0.10.2.0-cp1</version>
   </dependency>

 <repository>
            <id>confluent</id>
            <name>Confluent</name>
            <url>http://packages.confluent.io/maven/</url>
 </repository>

希望这会有帮助

相关问题