I am developing a binding and need jsoup as a dependency. First I installed eclipse and the respective openhab development environment using the guide. As jsoup is also used in other bindings I tried to import it as a shared dependency like suggested in the documentation, by modifying the pom.xml and feature.xml like it is done in other bindings like this one.
I then proceeded to add the binding to the run requirements and press “Resolve”, which throws an error message:
Resolution failed. Capabilities satisfying the following requirements could not be found:
⇒ osgi.identity: (osgi.identity=org.openhab.binding.MY_BINDING)
⇒ [org.openhab.binding.MY_BINDING version=126.96.36.199204241433]
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.jsoup)(version>=1.14.0)(!(version>=2.0.0)))
⇒ osgi.service: (objectClass=org.apache.karaf.features.FeaturesService)
This not only happens with my binding but also with the other one I mentioned above, suggesting that it has something to do with eclipse / the environment.
I also tried a fresh install eclipse on both Linux and Win10.
Thanks for your help.