Tuesday 12 November 2019

Kafka: Setup maven project in Eclipse


In this post, I am going to explain how to setup a java project to work with Kafka. Procedure is same for all other IDEs.

Step 1: Open Eclipse.

File -> New -> Other


Search for maven, select ‘Maven Project’.

Click on Next button.


Select the option ‘Create a simple project (skip archetype selection), click on Next button.

Give Group Id as com.sample.app, Artifact Id as kafka_client and version as 1.

Click on Finish button.

Project structure looks like below.

Open pom.xml and update maven dependencies.

  <dependency>
   <groupId>org.apache.kafka</groupId>
   <artifactId>kafka-clients</artifactId>
   <version>2.3.0</version>
  </dependency>


Previous                                                    Next                                                    Home

No comments:

Post a Comment