Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.4.4:verify

Hi

I’m new to Java and openHAB Binding development, but had managed to build and start testing a binding thanks to resolved previous post, however I have hit another snag.

The code I was running on Friday (while trying to fix a functional error) today no longer completes build. Its the exact same code that completed fine on Friday.

I get the following ERROR:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  42.584 s
[INFO] Finished at: 2024-03-17T15:03:27Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.4.4:verify (karaf-feature-verification) on project org.openhab.binding.sunsynk: Feature resolution failed for [openhab-binding-sunsynk/4.2.0.SNAPSHOT]
[ERROR] Message: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-binding-sunsynk; type=karaf.feature; version=4.2.0.SNAPSHOT; filter:="(&(osgi.identity=openhab-binding-sunsynk)(type=karaf.feature)(version>=4.2.0.SNAPSHOT))" [caused by: Unable to resolve openhab-binding-sunsynk/4.2.0.SNAPSHOT: missing requirement [openhab-binding-sunsynk/4.2.0.SNAPSHOT] osgi.identity; osgi.identity=openhab-runtime-base; type=karaf.feature [caused by: Unable to resolve openhab-runtime-base/4.2.0.SNAPSHOT: missing requirement [openhab-runtime-base/4.2.0.SNAPSHOT] osgi.identity; osgi.identity=openhab-core-model-item; type=karaf.feature [caused by: Unable to resolve openhab-core-model-item/4.2.0.SNAPSHOT: missing requirement [openhab-core-model-item/4.2.0.SNAPSHOT] osgi.identity; osgi.identity=org.openhab.core.model.item; type=osgi.bundle; version="[4.2.0.202403170857,4.2.0.202403170857]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.model.item/4.2.0.202403170857: missing requirement [org.openhab.core.model.item/4.2.0.202403170857] osgi.wiring.bundle; osgi.wiring.bundle=org.eclipse.xtext.common.types; filter:="(osgi.wiring.bundle=org.eclipse.xtext.common.types)" [caused by: Unable to resolve org.eclipse.xtext.common.types/2.34.0.v20240227-0940: missing requirement [org.eclipse.xtext.common.types/2.34.0.v20240227-0940] osgi.wiring.bundle; osgi.wiring.bundle=org.objectweb.asm; bundle-version="[9.6.0,9.7.0)"; filter:="(&(osgi.wiring.bundle=org.objectweb.asm)(bundle-version>=9.6.0)(!(bundle-version>=9.7.0)))"]]]]]
[ERROR] Repositories: {
[ERROR]         file:C:\Users\Lee\development\openhab-addons\bundles\org.openhab.binding.sunsynk\target/feature/feature.xml
[ERROR]         mvn:org.apache.karaf.features/framework/4.4.4/xml/features
[ERROR]         mvn:org.apache.karaf.features/specs/4.4.4/xml/features
[ERROR]         mvn:org.apache.karaf.features/standard/4.4.4/xml/features
[ERROR]         mvn:org.openhab.core.features.karaf/org.openhab.core.features.karaf.openhab-core/4.2.0-SNAPSHOT/xml/features
[ERROR]         mvn:org.openhab.core.features.karaf/org.openhab.core.features.karaf.openhab-tp/4.2.0-SNAPSHOT/xml/features
[ERROR]         mvn:org.ops4j.pax.web/pax-web-features/8.0.22/xml/features
[ERROR] }
[ERROR] Resources: {
[ERROR]         mvn:com.fasterxml.jackson.core/jackson-annotations/2.16.0
[ERROR]         mvn:com.fasterxml.jackson.core/jackson-core/2.16.0
[ERROR]         mvn:com.fasterxml.jackson.core/jackson-databind/2.16.0
[ERROR]         mvn:com.fasterxml.jackson.dataformat/jackson-dataformat-cbor/2.16.0
[ERROR]         mvn:com.fasterxml.jackson.dataformat/jackson-dataformat-xml/2.16.0
[ERROR]         mvn:com.fasterxml.jackson.dataformat/jackson-dataformat-yaml/2.16.0
[ERROR]         mvn:com.fasterxml.jackson.datatype/jackson-datatype-jsr310/2.16.0
[ERROR]         mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-base/2.16.0
[ERROR]         mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-json-provider/2.16.0
[ERROR]         mvn:com.fasterxml.jackson.module/jackson-module-jaxb-annotations/2.16.0
[ERROR]         mvn:com.fasterxml.woodstox/woodstox-core/6.5.1
[ERROR]         mvn:com.google.guava/failureaccess/1.0.2
[ERROR]         mvn:com.google.guava/guava/33.0.0-jre
[ERROR]         mvn:com.google.inject/guice/7.0.0
[ERROR]         mvn:com.sun.xml.bind/jaxb-osgi/2.3.8
[ERROR]         mvn:com.thoughtworks.xstream/xstream/1.4.20
[ERROR]         mvn:de.focus-shift/jollyday-core/0.23.2
[ERROR]         mvn:de.focus-shift/jollyday-jackson/0.23.2
[ERROR]         mvn:io.github.classgraph/classgraph/4.8.165
[ERROR]         mvn:io.swagger.core.v3/swagger-annotations/2.2.15
[ERROR]         mvn:io.swagger.core.v3/swagger-core/2.2.15
[ERROR]         mvn:io.swagger.core.v3/swagger-integration/2.2.15
[ERROR]         mvn:io.swagger.core.v3/swagger-jaxrs2/2.2.15
[ERROR]         mvn:io.swagger.core.v3/swagger-models/2.2.15
[ERROR]         mvn:jakarta.annotation/jakarta.annotation-api/2.0.0
[ERROR]         mvn:jakarta.inject/jakarta.inject-api/1.0.5
[ERROR]         mvn:jakarta.inject/jakarta.inject-api/2.0.1
[ERROR]         mvn:jakarta.jws/jakarta.jws-api/2.1.0
[ERROR]         mvn:jakarta.servlet/jakarta.servlet-api/4.0.4
[ERROR]         mvn:jakarta.validation/jakarta.validation-api/2.0.2
[ERROR]         mvn:jakarta.websocket/jakarta.websocket-api/1.1.2
[ERROR]         mvn:jakarta.xml.bind/jakarta.xml.bind-api/2.3.3
[ERROR]         mvn:jakarta.xml.ws/jakarta.xml.ws-api/2.3.3
[ERROR]         mvn:javax.annotation/javax.annotation-api/1.2
[ERROR]         mvn:javax.measure/unit-api/2.2
[ERROR]         mvn:javax.servlet/javax.servlet-api/3.1.0
[ERROR]         mvn:net.java.dev.jna/jna-platform/5.14.0
[ERROR]         mvn:net.java.dev.jna/jna/5.14.0
[ERROR]         mvn:org.apache.aries.component-dsl/org.apache.aries.component-dsl.component-dsl/1.2.2
[ERROR]         mvn:org.apache.aries.jax.rs/org.apache.aries.jax.rs.whiteboard/2.0.0
[ERROR]         mvn:org.apache.aries.spec/org.apache.aries.javax.jax.rs-api/1.0.4
[ERROR]         mvn:org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle/1.3.6
[ERROR]         mvn:org.apache.commons/commons-lang3/3.14.0
[ERROR]         mvn:org.apache.cxf/cxf-core/3.6.2
[ERROR]         mvn:org.apache.cxf/cxf-rt-frontend-jaxrs/3.6.2
[ERROR]         mvn:org.apache.cxf/cxf-rt-rs-client/3.6.2
[ERROR]         mvn:org.apache.cxf/cxf-rt-rs-sse/3.6.2
[ERROR]         mvn:org.apache.cxf/cxf-rt-security/3.6.2
[ERROR]         mvn:org.apache.cxf/cxf-rt-transports-http/3.6.2
[ERROR]         mvn:org.apache.felix/org.apache.felix.cm.json/1.0.6
[ERROR]         mvn:org.apache.felix/org.apache.felix.configadmin.plugin.interpolation/1.2.8
[ERROR]         mvn:org.apache.felix/org.apache.felix.configadmin/1.9.26
[ERROR]         mvn:org.apache.felix/org.apache.felix.configurator/1.0.16
[ERROR]         mvn:org.apache.felix/org.apache.felix.converter/1.0.14
[ERROR]         mvn:org.apache.felix/org.apache.felix.coordinator/1.0.2
[ERROR]         mvn:org.apache.felix/org.apache.felix.fileinstall/3.7.4
[ERROR]         mvn:org.apache.felix/org.apache.felix.inventory/1.1.0
[ERROR]         mvn:org.apache.felix/org.apache.felix.metatype/1.2.4
[ERROR]         mvn:org.apache.felix/org.apache.felix.scr/2.2.6
[ERROR]         mvn:org.apache.felix/org.apache.felix.webconsole.plugins.ds/2.2.0
[ERROR]         mvn:org.apache.felix/org.apache.felix.webconsole.plugins.event/1.1.8
[ERROR]         mvn:org.apache.karaf.config/org.apache.karaf.config.core/4.4.4
[ERROR]         mvn:org.apache.karaf.features/org.apache.karaf.features.core/4.4.4
[ERROR]         mvn:org.apache.karaf.features/org.apache.karaf.features.extension/4.4.4
[ERROR]         mvn:org.apache.karaf.http/org.apache.karaf.http.core/4.4.4
[ERROR]         mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.boot/4.4.4
[ERROR]         mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.command/4.4.4
[ERROR]         mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.config/4.4.4
[ERROR]         mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.modules/4.4.4
[ERROR]         mvn:org.apache.karaf.kar/org.apache.karaf.kar.core/4.4.4
[ERROR]         mvn:org.apache.karaf.log/org.apache.karaf.log.core/4.4.4
[ERROR]         mvn:org.apache.karaf.scr/org.apache.karaf.scr.management/4.4.4
[ERROR]         mvn:org.apache.karaf.scr/org.apache.karaf.scr.state/4.4.4
[ERROR]         mvn:org.apache.karaf.services/org.apache.karaf.services.eventadmin/4.4.4
[ERROR]         mvn:org.apache.karaf.shell/org.apache.karaf.shell.commands/4.4.4
[ERROR]         mvn:org.apache.karaf.shell/org.apache.karaf.shell.core/4.4.4
[ERROR]         mvn:org.apache.karaf.shell/org.apache.karaf.shell.groovy/4.4.4
[ERROR]         mvn:org.apache.karaf.webconsole/org.apache.karaf.webconsole.http/4.4.4
[ERROR]         mvn:org.apache.karaf.wrapper/org.apache.karaf.wrapper.core/4.4.4
[ERROR]         mvn:org.apache.karaf/org.apache.karaf.event/4.4.4
[ERROR]         mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saaj-impl/1.4.0_2
[ERROR]         mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.2.1/1.2.1_3
[ERROR]         mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.2/2.9.0
[ERROR]         mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.saaj-api-1.4/1.4_2
[ERROR]         mvn:org.apache.sling/org.apache.sling.commons.johnzon/1.2.16
[ERROR]         mvn:org.apache.ws.xmlschema/xmlschema-core/2.3.1
[ERROR]         mvn:org.apiguardian/apiguardian-api/1.1.2
[ERROR]         mvn:org.bitbucket.b_c/jose4j/0.9.5
[ERROR]         mvn:org.codehaus.woodstox/stax2-api/4.2.2
[ERROR]         mvn:org.eclipse.emf/org.eclipse.emf.common/2.24.0
[ERROR]         mvn:org.eclipse.emf/org.eclipse.emf.ecore.change/2.14.0
[ERROR]         mvn:org.eclipse.emf/org.eclipse.emf.ecore.xmi/2.16.0
[ERROR]         mvn:org.eclipse.emf/org.eclipse.emf.ecore/2.26.0
[ERROR]         mvn:org.eclipse.jetty.alpn/alpn-api/1.1.3.v20160715
[ERROR]         mvn:org.eclipse.jetty.http2/http2-client/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty.http2/http2-common/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty.http2/http2-hpack/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty.http2/http2-http-client-transport/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty.http2/http2-server/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty.websocket/javax-websocket-client-impl/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty.websocket/javax-websocket-server-impl/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty.websocket/websocket-api/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty.websocket/websocket-client/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty.websocket/websocket-common/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty.websocket/websocket-server/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty.websocket/websocket-servlet/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty/jetty-alpn-client/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty/jetty-alpn-java-client/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty/jetty-alpn-java-server/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty/jetty-alpn-server/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty/jetty-client/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty/jetty-continuation/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty/jetty-http/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty/jetty-io/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty/jetty-jaas/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty/jetty-jmx/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty/jetty-openid/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty/jetty-proxy/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty/jetty-rewrite/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty/jetty-security/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty/jetty-server/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty/jetty-servlet/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty/jetty-servlets/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty/jetty-util-ajax/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty/jetty-util/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.jetty/jetty-xml/9.4.52.v20230823
[ERROR]         mvn:org.eclipse.lsp4j/org.eclipse.lsp4j.jsonrpc/0.22.0
[ERROR]         mvn:org.eclipse.lsp4j/org.eclipse.lsp4j/0.22.0
[ERROR]         mvn:org.eclipse.orbit.bundles/com.google.gson/2.10.1.v20230109-0753
[ERROR]         mvn:org.eclipse.orbit.bundles/org.antlr.runtime/3.2.0.v201101311130
[ERROR]         mvn:org.eclipse.orbit.bundles/org.aopalliance/1.0.0.v201105210816
[ERROR]         mvn:org.eclipse.platform/org.eclipse.equinox.common/3.18.0
[ERROR]         mvn:org.eclipse.platform/org.eclipse.equinox.registry/3.9.0
[ERROR]         mvn:org.eclipse.platform/org.eclipse.equinox.supplement/1.9.0
[ERROR]         mvn:org.eclipse.platform/org.eclipse.osgi/3.18.0
[ERROR]         mvn:org.eclipse.xtend/org.eclipse.xtend.lib.macro/2.34.0
[ERROR]         mvn:org.eclipse.xtend/org.eclipse.xtend.lib/2.34.0
[ERROR]         mvn:org.eclipse.xtext/org.eclipse.xtext.common.types/2.34.0
[ERROR]         mvn:org.eclipse.xtext/org.eclipse.xtext.ide/2.34.0
[ERROR]         mvn:org.eclipse.xtext/org.eclipse.xtext.smap/2.34.0
[ERROR]         mvn:org.eclipse.xtext/org.eclipse.xtext.util/2.34.0
[ERROR]         mvn:org.eclipse.xtext/org.eclipse.xtext.xbase.ide/2.34.0
[ERROR]         mvn:org.eclipse.xtext/org.eclipse.xtext.xbase.lib/2.34.0
[ERROR]         mvn:org.eclipse.xtext/org.eclipse.xtext.xbase/2.34.0
[ERROR]         mvn:org.eclipse.xtext/org.eclipse.xtext/2.34.0
[ERROR]         mvn:org.fusesource.jansi/jansi/2.4.0
[ERROR]         mvn:org.glassfish.hk2/osgi-resource-locator/1.0.3
[ERROR]         mvn:org.javassist/javassist/3.29.2-GA
[ERROR]         mvn:org.jline/jline/3.21.0
[ERROR]         mvn:org.jmdns/jmdns/3.5.9
[ERROR]         mvn:org.jvnet.staxex/stax-ex/1.7.4
[ERROR]         mvn:org.openhab.addons.bundles/org.openhab.binding.sunsynk/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.addon.marketplace.karaf/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.addon.marketplace/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.addon/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.audio/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.auth.jaas/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.auth.oauth2client/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.automation.module.media/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.automation.module.script.rulesupport/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.automation.module.script/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.automation.rest/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.automation/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.config.core/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.config.discovery.addon.process/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.config.discovery.addon/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.config.discovery.mdns/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.config.discovery/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.config.dispatch/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.ephemeris/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.id/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.io.console.karaf/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.io.console/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.io.http.auth/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.io.http/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.io.jetty.certificate/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.io.monitor/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.io.net/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.io.rest.audio/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.io.rest.auth/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.io.rest.core/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.io.rest.mdns/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.io.rest.sitemap/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.io.rest.sse/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.io.rest.swagger/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.io.rest.transform/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.io.rest.ui/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.io.rest.voice/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.io.rest/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.io.transport.mdns/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.io.websocket/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.karaf/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.core/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.item.ide/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.item.runtime/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.item/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.lsp/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.persistence.ide/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.persistence.runtime/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.persistence/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.rule.ide/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.rule.runtime/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.rule/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.script.ide/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.script.runtime/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.script/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.sitemap.ide/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.sitemap.runtime/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.sitemap/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.thing.ide/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.thing.runtime/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.thing/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.model.yaml/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.persistence/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.semantics/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.storage.json/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.thing/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.transform/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.ui.icon/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.ui/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core.voice/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.core.bundles/org.openhab.core/4.2.0-SNAPSHOT
[ERROR]         mvn:org.openhab.osgiify/io.methvin.directory-watcher/0.18.0
[ERROR]         mvn:org.openhab.osgiify/si.uom.si-units/2.1
[ERROR]         mvn:org.openhab/base-fixes/1.0.0
[ERROR]         mvn:org.ops4j.pax.logging/pax-logging-api/2.2.3
[ERROR]         mvn:org.ops4j.pax.logging/pax-logging-log4j2/2.2.3
[ERROR]         mvn:org.ops4j.pax.url/pax-url-aether/2.6.14
[ERROR]         mvn:org.ops4j.pax.web/pax-web-api/8.0.22
[ERROR]         mvn:org.ops4j.pax.web/pax-web-compatibility-servlet31/8.0.22
[ERROR]         mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/8.0.22
[ERROR]         mvn:org.ops4j.pax.web/pax-web-jetty/8.0.22
[ERROR]         mvn:org.ops4j.pax.web/pax-web-runtime/8.0.22
[ERROR]         mvn:org.ops4j.pax.web/pax-web-spi/8.0.22
[ERROR]         mvn:org.ops4j.pax.web/pax-web-tomcat-common/8.0.22
[ERROR]         mvn:org.ops4j.pax.web/pax-web-websocket/8.0.22
[ERROR]         mvn:org.osgi/org.osgi.service.component.annotations/1.5.0
[ERROR]         mvn:org.osgi/org.osgi.service.component/1.5.0
[ERROR]         mvn:org.osgi/org.osgi.service.jaxrs/1.0.1
[ERROR]         mvn:org.osgi/org.osgi.util.function/1.2.0
[ERROR]         mvn:org.osgi/org.osgi.util.promise/1.2.0
[ERROR]         mvn:org.osgi/org.osgi.util.promise/1.3.0
[ERROR]         mvn:org.ow2.asm/asm-analysis/9.5
[ERROR]         mvn:org.ow2.asm/asm-commons/9.5
[ERROR]         mvn:org.ow2.asm/asm-tree/9.5
[ERROR]         mvn:org.ow2.asm/asm-util/9.5
[ERROR]         mvn:org.ow2.asm/asm/9.5
[ERROR]         mvn:org.threeten/threeten-extra/1.7.2
[ERROR]         mvn:org.yaml/snakeyaml/2.2
[ERROR]         mvn:si.uom/si-quantity/2.1
[ERROR]         mvn:tech.units/indriya/2.2
[ERROR]         mvn:tech.uom.lib/uom-lib-common/2.2
[ERROR] }

Both my addons development directory and my test openHAB are 4.2.0-SNAPSHOT.
I tried also to build an existing binding and get the exact same result.

[ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.4.4:verify (karaf-feature-verification) on project org.openhab.binding.neato: Feature resolution failed for [openhab-binding-neato/4.2.0.SNAPSHOT]
[ERROR] Message: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-binding-neato; type=karaf.feature; version=4.2.0.SNAPSHOT; filter:="(&(osgi.identity=openhab-binding-neato)(type=karaf.feature)(version>=4.2.0.SNAPSHOT))" [caused by: Unable to resolve openhab-binding-neato/4.2.0.SNAPSHOT: missing requirement [openhab-binding-neato/4.2.0.SNAPSHOT] osgi.identity; osgi.identity=openhab-runtime-base; type=karaf.feature [caused by: Unable to resolve openhab-runtime-base/4.2.0.SNAPSHOT: missing requirement [openhab-runtime-base/4.2.0.SNAPSHOT] osgi.identity; osgi.identity=openhab-core-model-item; type=karaf.feature [caused by: Unable to resolve openhab-core-model-item/4.2.0.SNAPSHOT: missing requirement [openhab-core-model-item/4.2.0.SNAPSHOT] osgi.identity; osgi.identity=org.openhab.core.model.item; type=osgi.bundle; version="[4.2.0.202403170857,4.2.0.202403170857]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.model.item/4.2.0.202403170857: missing requirement [org.openhab.core.model.item/4.2.0.202403170857] osgi.wiring.bundle; osgi.wiring.bundle=org.eclipse.xtext.common.types; filter:="(osgi.wiring.bundle=org.eclipse.xtext.common.types)" [caused by: Unable to resolve org.eclipse.xtext.common.types/2.34.0.v20240227-0940: missing requirement [org.eclipse.xtext.common.types/2.34.0.v20240227-0940] osgi.wiring.bundle; osgi.wiring.bundle=org.objectweb.asm; bundle-version="[9.6.0,9.7.0)"; filter:="(&(osgi.wiring.bundle=org.objectweb.asm)(bundle-version>=9.6.0)(!(bundle-version>=9.7.0)))"]]]]]

I saw this post

and changed my feature.xml

<feature>openhab-runtime-base</feature>

to

<feature>openhab-core-automation</feature> 

This appeared to resolve some of the issues but not all (or maybe I have hidden some problems). I now have the ERROR:

[ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.4.4:verify (karaf-feature-verification) on project org.openhab.binding.sunsynk: Feature resolution failed for [openhab-binding-sunsynk/4.2.0.SNAPSHOT]
[ERROR] Message: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-binding-sunsynk; type=karaf.feature; version=4.2.0.SNAPSHOT; filter:="(&(osgi.identity=openhab-binding-sunsynk)(type=karaf.feature)(version>=4.2.0.SNAPSHOT))" [caused by: Unable to resolve openhab-binding-sunsynk/4.2.0.SNAPSHOT: missing requirement [openhab-binding-sunsynk/4.2.0.SNAPSHOT] osgi.identity; osgi.identity=openhab-core-automation; type=karaf.feature]
[ERROR] Repositories: {
[ERROR]         file:C:\Users\Lee\development\openhab-addons\bundles\org.openhab.binding.sunsynk\target/feature/feature.xml
[ERROR]         mvn:org.apache.karaf.features/framework/4.4.4/xml/features
[ERROR]         mvn:org.apache.karaf.features/specs/4.4.4/xml/features
[ERROR]         mvn:org.apache.karaf.features/standard/4.4.4/xml/features
[ERROR]         mvn:org.openhab.core.features.karaf/org.openhab.core.features.karaf.openhab-core/4.2.0-SNAPSHOT/xml/features
[ERROR]         mvn:org.openhab.core.features.karaf/org.openhab.core.features.karaf.openhab-tp/4.2.0-SNAPSHOT/xml/features
[ERROR]         mvn:org.ops4j.pax.web/pax-web-features/8.0.22/xml/features
[ERROR] }
[ERROR] Resources: {
[ERROR]         mvn:org.apache.felix/org.apache.felix.cm.json/1.0.6
[ERROR]         mvn:org.apache.felix/org.apache.felix.configadmin.plugin.interpolation/1.2.8
[ERROR]         mvn:org.apache.felix/org.apache.felix.configadmin/1.9.26
[ERROR]         mvn:org.apache.felix/org.apache.felix.configurator/1.0.16
[ERROR]         mvn:org.apache.felix/org.apache.felix.converter/1.0.14
[ERROR]         mvn:org.apache.felix/org.apache.felix.coordinator/1.0.2
[ERROR]         mvn:org.apache.felix/org.apache.felix.fileinstall/3.7.4
[ERROR]         mvn:org.apache.karaf.config/org.apache.karaf.config.core/4.4.4
[ERROR]         mvn:org.apache.karaf.features/org.apache.karaf.features.core/4.4.4
[ERROR]         mvn:org.apache.karaf.features/org.apache.karaf.features.extension/4.4.4
[ERROR]         mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.2/2.9.0
[ERROR]         mvn:org.apache.sling/org.apache.sling.commons.johnzon/1.2.16
[ERROR]         mvn:org.fusesource.jansi/jansi/2.4.0
[ERROR]         mvn:org.openhab.addons.bundles/org.openhab.binding.sunsynk/4.2.0-SNAPSHOT
[ERROR]         mvn:org.ops4j.pax.logging/pax-logging-api/2.2.3
[ERROR]         mvn:org.ops4j.pax.logging/pax-logging-log4j2/2.2.3
[ERROR]         mvn:org.ops4j.pax.url/pax-url-aether/2.6.14
[ERROR]         mvn:org.osgi/org.osgi.util.function/1.2.0
[ERROR]         mvn:org.osgi/org.osgi.util.promise/1.2.0
[ERROR] }

So it looks like these both have the common error

[ERROR] Message: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-binding-sunsynk; type=karaf.feature; version=4.2.0.SNAPSHOT; filter:="(&(osgi.identity=openhab-binding-sunsynk)(type=karaf.feature)(version>=4.2.0.SNAPSHOT))" [caused by: Unable to resolve openhab-binding-sunsynk/4.2.0.SNAPSHOT: missing requirement [openhab-binding-sunsynk/4.2.0.SNAPSHOT] osgi.identity; osgi.identity=openhab-xxxx-xxxx; type=karaf.feature]

where openhab- xxxx-xxxx is either core.automation or runtime-base.

Also saw this topic.

3.0.2 First run on windows 10 - Unable to resolve root: missing requirement [root] osgi.identity;

So checked my install was not changed by any updates, this looks okay to me (I would expect a more fundamental failure if it was wrong)

JAVA_HOME = C:\Program Files\Java\jdk-17

> java --version
java 17.0.10 2024-01-16 LTS
Java(TM) SE Runtime Environment (build 17.0.10+11-LTS-240)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.10+11-LTS-240, mixed mode, sharing)

> mvn --version
Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: C:\Program Files\apache-maven-3.9.6
Java version: 17.0.10, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-17
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Can anyone shed any light on this.
Thanks in advance.

If you are based on snapshot you have a moving target. It might be that core features have been updated and you are just missing that update.

Try building latest openhab-core, then rebase your changes on top of openhab-addons main branch (commit all changes, them do git pull —rebase origin main) and build it too. It might be that issue will disappear. Sometimes issue such this come from caching of dependencies which might vary between different components/stages or even maven plugins.

Hi Splatch

I’m sorry I’m not sure I know how to do that. Although I cloned my openhab-addons, all my code is local can you break it down a little for me. Sorry to be a novice this seams a little complicated.

Or could I avoid this SNAPSHOT moving target somehow and clone a stable version for my development addons.

Several dependencies got upgraded with openhab-core#4133. I think your code should build again when openhab-addons#16493 also gets merged and you rebase your changes on top of it.

Thanks I can see you guys are working to resolve this I will try to understand “rebase”.
I saw a link git - the simple guide @

I’ll start there.

Git rebase is common strategy to keep linear source code history.
It does very basic thing, which often cause troubles, it takes all commits on branch you work, which are missing on remote branch, and copy them on top of remote branch one by one. It means that if you are several commits ahead of remote, you might get multiple conflicts with each and every local commit which gets applied.

Thanks for the help
I manged to do a git rebase of my local branch

For anyone else trying here is what I did

>> git checkout main
>> git pull
>> git checkout <development branch>
>> git rebase main

I was then able to successfully run the task: mvn Compile (online)

Thanks all

1 Like