GitHub user chrisdutz added a comment to the discussion: PLC4X Kafka Connect 
"Connection String format is incorrect" with S7 and Modbus in Docker

Are you basing your work on the existing, but old Kafka Connect adapter in the 
plc4x-extras repo, or is this a completely new approach? But I think you are 
using the existing one.

With fat jars there always is a problem on how they are created. While you can 
simply merge the driver code without problems, as all drivers are located in 
separate packages, there usually are issues if you create a fat jar with 
multiple drivers when it comes to the resource files PLC4X uses to locate 
drivers. Here all jars have the same file 
"META-INF/services/org.apache.plc4x.java.api.PlcDriver" ... I think per default 
either the first file with that name is used and the others are dropped. This 
results in PLC4X only finding one driver.

You should have a look at your fat jar and inspect this file and double check 
all drivers are listed.

There is however an option to have the plugins merge the resource files, but 
you need to use plugins for the plugins for that. See here:
https://github.com/apache/plc4x-extras/blob/d46b95746f3fd3c1735fc51a86471100c49128f5/plc4j/examples/pom.xml#L67

Hope that helps.

GitHub link: 
https://github.com/apache/plc4x/discussions/2163#discussioncomment-13650657

----
This is an automatically sent email for dev@plc4x.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@plc4x.apache.org

Reply via email to