Skip to content

Commit 5cbd3cd

Browse files
Upgrade to 0.4 and improve packaging
1 parent 05e5c13 commit 5cbd3cd

File tree

4 files changed

+53
-7
lines changed

4 files changed

+53
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Build the connector using Maven:
2525
mvn clean package
2626
```
2727

28-
Once built, the output is a single JAR called `target/kafka-connect-mq-source-0.3-SNAPSHOT-jar-with-dependencies.jar` which contains all of the required dependencies.
28+
Once built, the output is a single JAR called `target/kafka-connect-mq-source-0.4-SNAPSHOT-jar-with-dependencies.jar` which contains all of the required dependencies.
2929

3030

3131
## Running the connector

UsingMQwithKafkaConnect.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ topic=TSOURCE
154154

155155
Change directory to the Kafka root directory. Start the connector worker replacing `<connector-root-directory>`:
156156
``` shell
157-
CLASSPATH=<connector-root-directory>/target/kafka-connect-mq-source-0.3-SNAPSHOT-jar-with-dependencies.jar bin/connect-standalone.sh config/connect-standalone.properties ~/mq-source.properties
157+
CLASSPATH=<connector-root-directory>/target/kafka-connect-mq-source-0.4-SNAPSHOT-jar-with-dependencies.jar bin/connect-standalone.sh config/connect-standalone.properties ~/mq-source.properties
158158
```
159159

160160
Wait while the worker starts and then prints:
@@ -212,7 +212,7 @@ mq.password=passw0rd
212212

213213
Change directory to the Kafka root directory. Start the connector worker replacing `<connector-root-directory>`:
214214
``` shell
215-
CLASSPATH=<connector-root-directory>/target/kafka-connect-mq-sink-0.3-SNAPSHOT-jar-with-dependencies.jar bin/kafka-connect-standalone config/connect-standalone.properties ~/mq-sink.properties
215+
CLASSPATH=<connector-root-directory>/target/kafka-connect-mq-sink-0.4-SNAPSHOT-jar-with-dependencies.jar bin/kafka-connect-standalone config/connect-standalone.properties ~/mq-sink.properties
216216
```
217217

218218
Wait while the worker starts and then prints:

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<groupId>com.ibm.mq.kafkaconnect</groupId>
2121
<artifactId>kafka-connect-mq-source</artifactId>
2222
<packaging>jar</packaging>
23-
<version>0.3-SNAPSHOT</version>
23+
<version>0.4-SNAPSHOT</version>
2424
<name>kafka-connect-mq-source</name>
2525
<organization>
2626
<name>IBM Corporation</name>
@@ -102,9 +102,9 @@
102102
</execution>
103103
</executions>
104104
<configuration>
105-
<descriptorRefs>
106-
<descriptorRef>jar-with-dependencies</descriptorRef>
107-
</descriptorRefs>
105+
<descriptors>
106+
<descriptor>src/assembly/package.xml</descriptor>
107+
</descriptors>
108108
</configuration>
109109
</plugin>
110110
</plugins>

src/assembly/package.xml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
* Copyright 2018 IBM Corporation
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
-->
17+
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
18+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0
20+
http://maven.apache.org/xsd/assembly-2.0.0.xsd">
21+
<id>jar-with-dependencies</id>
22+
<formats>
23+
<format>jar</format>
24+
</formats>
25+
<includeBaseDirectory>false</includeBaseDirectory>
26+
<files>
27+
<file>
28+
<source>LICENSE</source>
29+
<outputDirectory></outputDirectory>
30+
</file>
31+
</files>
32+
<dependencySets>
33+
<dependencySet>
34+
<outputDirectory></outputDirectory>
35+
<unpack>true</unpack>
36+
<unpackOptions>
37+
<excludes>
38+
<exclude>**/copyright-exclude</exclude>
39+
<exclude>META-INF/maven/**</exclude>
40+
</excludes>
41+
</unpackOptions>
42+
<useTransitiveFiltering>true</useTransitiveFiltering>
43+
<scope>runtime</scope>
44+
</dependencySet>
45+
</dependencySets>
46+
</assembly>

0 commit comments

Comments
 (0)