It looks like that dependency is not an OSGi bundle. (N.B. In the docs âIf the bundle is not an OSGi-bundle, you need to wrap it and provide proper namesâ)
Iâve tried your proposals. But not very sucessfully, yet.
@J-N-K if I understand your new documentation correct, it is enough to define my dependency in POM.xml
So now in my pom.xml is the following dependency:
OK, thanks!
You was right. Java-Util was also missing as an dependency.
But there is still another Error and Iâm stuck.
There is a missing Package com.sun.security.auth.module
But I have no idea which code needs this lib!?
[ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.2.7:verify (karaf-feature-verification) on project org.openhab.binding.victronenergydbus: Feature resolution failed for [openhab-binding-victronenergydbus/2.5.4.SNAPSHOT]
[ERROR] Message: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-binding-victronenergydbus; type=karaf.feature; version=2.5.4.SNAPSHOT; filter:=â(&(osgi.identity=openhab-binding-victronenergydbus)(type=karaf.feature)(version>=2.5.4.SNAPSHOT))â [caused by: Unable to resolve openhab-binding-victronenergydbus/2.5.4.SNAPSHOT: missing requirement [openhab-binding-victronenergydbus/2.5.4.SNAPSHOT] osgi.identity; osgi.identity=org.openhab.binding.victronenergydbus; type=osgi.bundle; version=â[2.5.4.202004211645,2.5.4.202004211645]â; resolution:=mandatory [caused by: Unable to resolve org.openhab.binding.victronenergydbus/2.5.4.202004211645: missing requirement [org.openhab.binding.victronenergydbus/2.5.4.202004211645] osgi.wiring.package; filter:=â(osgi.wiring.package=com.sun.security.auth.module)â]]
Thank you very much @J-N-K
I added this lines to my pom.xml an have no Problems with the Binding.
But I still have no idea where I can find this dependency in my code!?
Itâs not directly in your code. Itâs a dependency of one of your dependencies. dbus-java depends on jnr-unixsockets which again has some dependencies. I guess somewhere something imports these packages. If you donât actively use that classes, youâll never notice itâs not there. Thatâs why I suggested to make it optional.