From 5ff3874e0474006b0c90d6c009864fd8f878bd26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20H=2E=20Ho=C3=9Ffeld?= Date: Mon, 26 Jun 2017 14:15:22 +0200 Subject: [PATCH] Simplified build script. Allows building for different Kafka/Scala versions by changing the properties kafka.version and kafka.scale.version --- README.md | 4 ++++ assembly.xml | 24 +++--------------------- pom.xml | 37 ++++++++++--------------------------- 3 files changed, 17 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index 27b150e..b080c83 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,10 @@ Apache Kafka consumer step plug-in for Pentaho Kettle. The consumer depends on Apache Kafka 0.8.1.1, which means that the broker must be of 0.8.x version or later. +If you want to build the plugin for a different Kafka version you have to +modify the values of kafka.version and kafka.scala.version in the properties +section of the pom.xml. + ### Maximum Duration Of Consumption ### Note that the maximum duration of consumption is a limit on the duration of the diff --git a/assembly.xml b/assembly.xml index 52fffa0..fd4f0fe 100644 --- a/assembly.xml +++ b/assembly.xml @@ -3,6 +3,8 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd"> + dist + ${project.artifactId} @@ -15,33 +17,13 @@ LICENSE - - target/lib - lib - - jline-0.9.94.jar - jopt-simple-3.2.jar - junit-3.8.1.jar - kafka_2.10-0.8.2.1.jar - kafka-clients-0.8.2.1.jar - log4j-1.2.17.jar - lz4-1.2.0.jar - metrics-core-2.2.0.jar - netty-3.7.0.Final.jar - scala-library-2.10.4.jar - slf4j-api-1.7.2.jar - slf4j-log4j12-1.6.1.jar - snappy-java-1.1.1.6.jar - zkclient-0.3.jar - zookeeper-3.4.6.jar - - target . *.jar version.xml + lib/*.jar diff --git a/pom.xml b/pom.xml index 670e10e..d49bad3 100644 --- a/pom.xml +++ b/pom.xml @@ -5,13 +5,15 @@ com.ruckuswireless pentaho-kafka-consumer TRUNK-SNAPSHOT - Apache Kafka Integration Plug-In for Pentaho + Apache Kafka Consumer Plug-In for Pentaho UTF-8 1.6 1.6 6.1.0.2-208 + 2.10 + 0.8.2.1 ${maven.build.timestamp} yyyyMMdd-HHmm @@ -30,8 +32,8 @@ org.apache.kafka - kafka_2.10 - 0.8.2.1 + kafka_${kafka.scala.version} + ${kafka.version} com.sun.jmx @@ -51,31 +53,14 @@ pentaho-kettle kettle-engine ${kettle.version} - compile - - - pentaho-kettle - kettle-core - ${kettle.version} - compile + provided pentaho-kettle kettle-ui-swt ${kettle.version} - compile - - - org.eclipse.swt - org.eclipse.swt.win32.win32.x86_64 - 4.3 - compile - - - log4j - log4j - 1.2.17 - + provided + @@ -85,16 +70,12 @@ src/main/resources - logo.png - plugin.xml version.xml src/main/resources - logo.png - plugin.xml version.xml true @@ -112,6 +93,8 @@ copy-dependencies + provided + runtime ${project.build.directory}/lib