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.
pom.xml
pom.xml
…
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.14.3</version>
<scope>provided</scope>
</dependency>
…
feature.xml
feature.xml
…
<bundle dependency=“true”>mvn:org.jsoup/jsoup/1.14.3</bundle>
…
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:
[<<INITIAL>>]
⇒ osgi.identity: (osgi.identity=org.openhab.binding.MY_BINDING)
⇒ [org.openhab.binding.MY_BINDING version=3.3.0.202204241433]
⇒ osgi.wiring.package: (&(osgi.wiring.package=org.jsoup)(version>=1.14.0)(!(version>=2.0.0)))
[org.apache.karaf.kar.core version=4.3.6]
⇒ 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.