Add jar to general Kafka Connect classpath in the Confluent Docker
If you want to add a jar that will be used by the Connect framework and is not specific to any of the connectors, you have the following options:
Add the
jar
to the classpath with:-e CLASSPATH=/path/to/custom/library.jar
Copy the
jar
directly to the directory that includes the Kafka Connect framework. In Confluent docker images this is currently:/usr/share/java/kafka
You need to make sure this jar
is not in conflict with any of the dependencies of Kafka Connect.