While developing the JDBC bridge for the DBquery addon, I tried to follow the same strategy that the jdbc persistence addon, which defines several features (one per db driver), and then the user can choose and doesn’t need to install the database driver manually.
The problem I have is that when I build the verify goal fails because for one of the features it complains it’s missing some driver dependency that is in another of the features.
I tried to mimic the jdbc persistence way and I don’t know why it works there and not in my case.
Putting all dependencies in each feature worked, but it’s not what I want.
Relevant code is in this WIP PR: [dbquery] JDBC database bridge [WIP] by lujop · Pull Request #11428 · openhab/openhab-addons · GitHub
And the error I get is:
[ERROR] Message: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-binding-dbquery-influx2; type=karaf.feature; version=3.2.0.SNAPSHOT; filter:="(&(osgi.identity=openhab-binding-dbquery-influx2)(type=karaf.feature)(version>=3.2.0.SNAPSHOT))" [caused by: Unable to resolve openhab-binding-dbquery-influx2/3.2.0.SNAPSHOT: missing requirement [openhab-binding-dbquery-influx2/3.2.0.SNAPSHOT] osgi.identity; osgi.identity=org.openhab.binding.dbquery; type=osgi.bundle; version="[22.214.171.124110291302,126.96.36.199110291302]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.binding.dbquery/188.8.131.52110291302: missing requirement [org.openhab.binding.dbquery/184.108.40.206110291302] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.postgresql)(version>=42.2.0)(!(version>=43.0.0)))"]]