kafka-maven-plugin Maven Plugin

Maven plugin to spin-up a Kafka broker

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.artnaseef
ArtifactId

ArtifactId

kafka-maven-plugin
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

kafka-maven-plugin Maven Plugin
Maven plugin to spin-up a Kafka broker
Project URL

Project URL

https://github.com/artnaseef/kafka-maven-plugin
Source Code Management

Source Code Management

https://github.com/artnaseef/kafka-maven-plugin

Download kafka-maven-plugin

How to add to project

<plugin>
    <groupId>com.artnaseef</groupId>
    <artifactId>kafka-maven-plugin</artifactId>
    <version>1.1.0</version>
</plugin>

Dependencies

compile (8)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.2.5
org.apache.maven : maven-compat jar 3.2.5
org.codehaus.plexus : plexus-utils jar 3.0.20
org.apache.curator : curator-test jar 2.7.1
org.apache.kafka : kafka_2.10 jar 0.10.0.1
org.apache.kafka : kafka-clients jar 0.10.0.1
org.slf4j : slf4j-api jar 1.7.10
org.slf4j : log4j-over-slf4j jar 1.7.10

provided (2)

Group / Artifact Type Version
org.apache.maven : maven-core jar 3.2.5
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.4

test (3)

Group / Artifact Type Version
ch.qos.logback : logback-classic jar 1.1.2
junit : junit jar 4.12
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 3.3.0

Project Modules

There are no modules declared in this project.

Kafka Maven Plugin

A Maven plugin to start a Kafka broker during integration tests

Usage

Use in conjunction with the failsafe plugin to start the broker before integration tests and tear it down afterwards.

<build>
    <plugins>
       <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-failsafe-plugin</artifactId>
            <version>2.14.1</version>
            <executions>
                <execution>
                    <goals>
                        <goal>integration-test</goal>
                        <goal>verify</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
        <plugin>
            <groupId>com.github.charithe</groupId>
            <artifactId>kafka-maven-plugin</artifactId>
            <version>1.0.0</version>
            <configuration>
                <zookeeperPort>52181</zookeeperPort>
                <kafkaPort>59092</kafkaPort>
            </configuration>
            <executions>
                <execution>
                    <id>preintegration</id>
                    <phase>pre-integration-test</phase>
                    <goals>
                        <goal>start-kafka-broker</goal>
                    </goals>
                </execution>
                <execution>
                    <id>postintegration</id>
                    <phase>post-integration-test</phase>
                    <goals>
                        <goal>stop-kafka-broker</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

Versions

Version
1.1.0