Well, today was a bit frustrating.
Eventually I ended updating maven (is now on version 3.6.0) , Java (is now on 11.0.8) so i guess this is a good base to start from.
Then I deleted everythin from Eclipse that ic could find on my pc (including the .m2 folder) and made a fresch install for openHAB 3.0.
I created a new binding from the skeleton.
I added the new binding to the pom file of the demo app and enabled by dragging my binding from Repos to Requirements.
I had some errors wich i managed to get rid off by executing
mvn spotless:apply -pl :org.openhab.binding.bindingname
mvn clean install -pl :org.openhab.binding.bindingname
One error remains when i click on resolve though:
Resolution failed. Capabilities satisfying the following requirements could not be found: [<>]
⇒ osgi.identity: (&(osgi.identity=org.openhab.core.karaf)(version>=3.0.0))
⇒ [org.openhab.core.karaf version=188.8.131.52010020627] ⇒ osgi.wiring.package: (&(osgi.wiring.package=org.apache.karaf.features)(version>=4.2.0)(!(version>=5.0.0))) [org.ops4j.pax.web.pax-web-jsp version=7.2.11] ⇒ osgi.wiring.package: (&(osgi.wiring.package=javax.el)(version>=3.0.0)(!(version>=4.0.0)))
[jakarta.activation-api version=1.2.1] ⇒ osgi.wiring.package: (osgi.wiring.package=com.sun.activation.registries)
I found a thread somewhere in this forum about this error and the advce was to execute ‘mvn -DskipChecks -DskipTests clean install’ which also gave me some spotless errors on a binding, so i ran ‘mvn spotless:apply’ and then the first command again.
Every binding got rebuild perfectly now.
But still I have this annoying error. I can’t get rid of it.
openHAB3 runs fine Seems very promissing
But I can’t see my binding.
I also enabled the Astro binding for testing which also doen’t work.
I guess the error got something to do with it?