diff --git a/examples/examples.xml b/examples/examples.xml index 3437e87..d227b4f 100644 --- a/examples/examples.xml +++ b/examples/examples.xml @@ -24,6 +24,7 @@ persons2/**/* persons3/**/* persons4/**/* + persons6/**/* persons1ds/**/* persons1db/**/* persons1ks/**/* diff --git a/examples/persons6/Makefile b/examples/persons6/Makefile new file mode 100644 index 0000000..3af558f --- /dev/null +++ b/examples/persons6/Makefile @@ -0,0 +1,16 @@ +# +# +# make get_libs - build the go binary +# + +DOCKER_TAG ?= latest +REPO_URL = https://repo1.maven.org/maven2 +CONFLUENT_REPO_URL = https://packages.confluent.io/maven + +.PHONY: get_libs +get_libs: + @echo "Getting jar files into target ..." + @mkdir -p target + @grep -v confluent libs.txt | while read -r line; do wget $(REPO_URL)/$$line -P target; done + @grep confluent libs.txt | while read -r line; do wget $(CONFLUENT_REPO_URL)/$$line -P target; done + diff --git a/examples/persons6/README.md b/examples/persons6/README.md index eef8533..ef78294 100644 --- a/examples/persons6/README.md +++ b/examples/persons6/README.md @@ -42,7 +42,8 @@ In order to use Apicurio registry, its client libraries must be placed in the co Run the following command to download those jar files into the target directory. ``` -$ mvn install +$ make get_libs +Getting jar files into target ... ... $ ls target avro-1.9.2.jar kafka-connect-avro-converter-5.4.2.jar diff --git a/examples/persons6/libs.txt b/examples/persons6/libs.txt new file mode 100644 index 0000000..f91dc9a --- /dev/null +++ b/examples/persons6/libs.txt @@ -0,0 +1,7 @@ +com/sap/cloud/db/jdbc/ngdbc/2.5.49/ngdbc-2.5.49.jar +org/apache/avro/avro/1.9.2/avro-1.9.2.jar +io/confluent/kafka-connect-avro-converter/5.4.2/kafka-connect-avro-converter-5.4.2.jar +io/confluent/common-config/5.4.2/common-config-5.4.2.jar +io/confluent/common-utils/5.4.2/common-utils-5.4.2.jar +io/confluent/kafka-schema-registry-client/5.4.2/kafka-schema-registry-client-5.4.2.jar +io/confluent/kafka-avro-serializer/5.4.2/kafka-avro-serializer-5.4.2.jar diff --git a/examples/persons6/pom.xml b/examples/persons6/pom.xml deleted file mode 100644 index 14a3be4..0000000 --- a/examples/persons6/pom.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - com.sap.kafka.connect.examples - 0.9.0-SNAPSHOT - 4.0.0 - persons6-libs - pom - - - - - - confluent - http://packages.confluent.io/maven - - true - - - - - - - com.sap.kafka.connect - kafka-connector-hana - ${project.version} - - - com.sap.cloud.db.jdbc - ngdbc - 2.5.49 - - - io.confluent - kafka-connect-avro-converter - 5.4.2 - - - io.confluent - common-config - 5.4.2 - - - io.confluent - common-utils - 5.4.2 - - - io.confluent - kafka-schema-registry-client - 5.4.2 - - - io.confluent - kafka-avro-serializer - 5.4.2 - - - org.apache.avro - avro - 1.9.2 - - - - - - org.apache.maven.plugins - maven-dependency-plugin - 3.1.2 - - - copy-dependencies - package - - copy-dependencies - - - true - target - - - - - - -