Skip to content

schuth/kafka-maven-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kafka-maven-plugin

Build Status Maven Central ![License](http://img.shields.io/:license-Apache 2.0-blue.svg)

A Maven plugin to start and stop a Kafka broker during tests.

<build>
    <plugins>
        <plugin>
            <groupId>com.arturmkrtchyan.kafka</groupId>
            <artifactId>kafka-maven-plugin</artifactId>
            <version>0.0.1</version>
            <configuration>
                <scalaVersion>2.9.2</scalaVersion>
                <kafkaVersion>0.8.2.1</kafkaVersion>
            </configuration>
            <executions>
                <execution>
                    <id>pre-integration</id>
                    <phase>pre-integration-test</phase>
                    <goals>
                        <goal>start</goal>
                    </goals>
                </execution>
                <execution>
                    <id>post-integration</id>
                    <phase>post-integration-test</phase>
                    <goals>
                        <goal>stop</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

This plugin has 3 goals:

  • kafka:help
    • Display help information on kafka-maven-plugin.
  • kafka:start
    • Goal which starts kafka broker.
  • kafka:stop
    • Goal which stops kafka broker.

About

Kafka Maven Plugin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%