I’m trying to make use of the mbus bridge that is implemented in feature/mbus_bridge_abb_b23. The implementation uses org.openmuc.jmbus as an external jar. The bundle dependencies (import/export) are not the problem as far as I understand and I checked all the setup parts as described in https://community.openems.io/t/how-to-integrate-an-external-library/62. But when I try to activate the mbus bridge bundle some library that is needed in jmbus cannot be loaded. I get the same error
Could not load lib from jar and from system. gnu.io.LibLoadException: directory does not exist /libs)
that is also discussed here.
The answer that seemed to work there is:
"…add a plugin to the maven build which produces a JAR with all dependencies included. Like described here: https://www.mkyong.com/maven/create-a-fat-jar-file-maven-assembly-plugin/ However, what’s still odd, you have to add the library path like mentioned above:
For my understanding this should not be necessary anymore. Nevertheless, without the path it is not working.
Now my question is, given that this would be the only solution, what is the best way to do this? I’m not the biggest expert in maven, gradle, etc. and I don’t quite look through all the details of plugin integration in bnd so maybe I just missed something dumb …
Thanks in advance,