where can I find maven repository for kafka?

前端 未结 7 2021
青春惊慌失措
青春惊慌失措 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 15:08

    Even though this is already answered, I think future readers might benefit from a complete simple example that works out of the box. I put one together here > https://github.com/buildlackey/cep

    Like the o.p., I have been fighting to find a Maven pom.xml recipe that will allow me to pull in an official version of Kafka from a public Maven repository. I did manage to get my example working, but for now I have had to hack my dependencies so that the version of Kafka I use is pulled from a work-in-progress version of a storm-kafka integration project. I'm concerned the 'wip' versions below will be deprecated. Then this project will lose its dependencies and fail to build properly. Also, I really shouldn't be introducing storm for this simple Kafka example at this point in any case.

    
       
            storm
            storm
            0.9.0-wip17
        
        
            storm
            storm-core
            0.9.0-wip17
        
        
            storm
            storm-kafka
            0.9.0-wip16a-scala292
        
        
    
    
    

    If someone could provide me with a patch for 'the right way' to do this with Maven I will update my project accordingly.... Hopefully it will serve as a useful resource for other beginning Kafka developers.

提交回复
热议问题