Dear openHAB developpers,
I’m running in some problems wit the freshly released binding for Qbus.
@fwolter released the binding yesterday.
I’m not sure, but i suppose that the Milestone M3 relaese has something to do with it.
When I’ve updated to this release (when i was still runing the testing JAR file - wich worked fine on M2) the following error was shown on my testing device:
[ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-persistence-rrd4j, openhab-ui-basic, openhab-ui-habpanel': Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-ui-basic; type=karaf.feature; version="[3.1.0.SNAPSHOT,3.1.0.SNAPSHOT]"; filter:="(&(osgi.identity=openhab-ui-basic)(type=karaf.feature)(version>=3.1.0.SNAPSHOT)(version<=3.1.0.SNAPSHOT))" [caused by: Unable to resolve openhab-ui-basic/3.1.0.SNAPSHOT: missing requirement [openhab-ui-basic/3.1.0.SNAPSHOT] osgi.identity; osgi.identity=org.openhab.ui.basic; type=osgi.bundle; version="[3.1.0.202104021356,3.1.0.202104021356]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.ui.basic/3.1.0.202104021356: missing requirement [org.openhab.ui.basic/3.1.0.202104021356] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.framework)(version>=1.9.0)(!(version>=2.0.0)))"]]
I’ve searched this forum, but could not find a answer for my problem. I did a purge of openHAB and a fresh install - then everything worked as usual.
Now that the binding is released, i wanted to fix some small issues. The binding was made with Eclipse. When I test the binding, everything is fine. The binding works. And to be sure, without making any changes, I tried to build it again.
When I execute ‘mvn clean install -pl :org.openhab.binding.qbus’ as i did before, I get these errors:
[ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.2.7:verify (karaf-feature-verification) on project org.openhab.binding.qbus: Feature resolution failed for [openhab-binding-qbus/3.1.0.SNAPSHOT]
[ERROR] Message: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-binding-qbus; type=karaf.feature; version=3.1.0.SNAPSHOT; filter:="(&(osgi.identity=openhab-binding-qbus)(type=karaf.feature)(version>=3.1.0.SNAPSHOT))" [caused by: Unable to resolve openhab-binding-qbus/3.1.0.SNAPSHOT: missing requirement [openhab-binding-qbus/3.1.0.SNAPSHOT] osgi.identity; osgi.identity=openhab-runtime-base; type=karaf.feature [caused by: Unable to resolve openhab-runtime-base/3.1.0.SNAPSHOT: missing requirement [openhab-runtime-base/3.1.0.SNAPSHOT] osgi.identity; osgi.identity=openhab-core-model-thing; type=karaf.feature [caused by: Unable to resolve openhab-core-model-thing/3.1.0.SNAPSHOT: missing requirement [openhab-core-model-thing/3.1.0.SNAPSHOT] osgi.identity; osgi.identity=org.openhab.core.model.thing; type=osgi.bundle; version="[3.1.0.202104110758,3.1.0.202104110758]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.model.thing/3.1.0.202104110758: missing requirement [org.openhab.core.model.thing/3.1.0.202104110758] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core.config.core)(version>=3.1.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core.config.core/3.1.0.202104110753: missing requirement [org.openhab.core.config.core/3.1.0.202104110753] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core.common)(version>=3.1.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.1.0.202104110749: missing requirement [org.openhab.core/3.1.0.202104110749] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.framework)(version>=1.9.0)(!(version>=2.0.0)))"]]]]]]
I notice the same message: Unable to resolve root: missing requirement [root]
Then, to find out what’s wrong, I open Eclipse again and there I find this error:
Description Resource Path Location Type
Failed to execute goal on project e[36morg.openhab.binding.qbuse[m: e[1;31mCould not resolve dependencies for project org.openhab.addons.bundles:org.openhab.binding.qbus:jar:3.1.0-SNAPSHOT: The following artifacts could not be resolved: org.eclipse.emf:org.eclipse.emf.mwe.core:jar:1.6.1, org.eclipse.emf:org.eclipse.emf.mwe2.runtime:jar:2.12.1, org.eclipse.emf:org.eclipse.emf.mwe2.language:jar:2.12.1: Could not find artifact org.eclipse.emf:org.eclipse.emf.mwe.core:jar:1.6.1e[m (biz.aQute.bnd:bnd-maven-plugin:5.1.2:bnd-process:default:process-classes)
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project e[36morg.openhab.binding.qbuse[m: e[1;31mCould not resolve dependencies for project org.openhab.addons.bundles:org.openhab.binding.qbus:jar:3.1.0-SNAPSHOT: The following artifacts could not be resolved: org.eclipse.emf:org.eclipse.emf.mwe.core:jar:1.6.1, org.eclipse.emf:org.eclipse.emf.mwe2.runtime:jar:2.12.1, org.eclipse.emf:org.eclipse.emf.mwe2.language:jar:2.12.1: Could not find artifact org.eclipse.emf:org.eclipse.emf.mwe.core:jar:1.6.1e[m
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:269)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:147)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:248)
at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:331)
at org.eclipse.m2e.core.internal.embedder.MavenImpl.lambda$8(MavenImpl.java:1380)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:179)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:114)
at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1379)
at org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipant.build(MojoExecutionBuildParticipant.java:54)
at bndtools.m2e.BndConfigurator$1.build(BndConfigurator.java:135)
at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:135)
at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:169)
at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1)
at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.lambda$1(MavenBuilder.java:114)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:179)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:114)
at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.lambda$0(MavenBuilder.java:105)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:179)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:153)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:101)
at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.execute(MavenBuilder.java:88)
at org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:197)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:846)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:229)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:277)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:330)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:333)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:385)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:406)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:154)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:244)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.openhab.addons.bundles:org.openhab.binding.qbus:jar:3.1.0-SNAPSHOT: The following artifacts could not be resolved: org.eclipse.emf:org.eclipse.emf.mwe.core:jar:1.6.1, org.eclipse.emf:org.eclipse.emf.mwe2.runtime:jar:2.12.1, org.eclipse.emf:org.eclipse.emf.mwe2.language:jar:2.12.1: Could not find artifact org.eclipse.emf:org.eclipse.emf.mwe.core:jar:1.6.1
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:209)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:243)
... 33 more
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: org.eclipse.emf:org.eclipse.emf.mwe.core:jar:1.6.1, org.eclipse.emf:org.eclipse.emf.mwe2.runtime:jar:2.12.1, org.eclipse.emf:org.eclipse.emf.mwe2.language:jar:2.12.1: Could not find artifact org.eclipse.emf:org.eclipse.emf.mwe.core:jar:1.6.1
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:357)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:202)
... 34 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: org.eclipse.emf:org.eclipse.emf.mwe.core:jar:1.6.1, org.eclipse.emf:org.eclipse.emf.mwe2.runtime:jar:2.12.1, org.eclipse.emf:org.eclipse.emf.mwe2.language:jar:2.12.1: Could not find artifact org.eclipse.emf:org.eclipse.emf.mwe.core:jar:1.6.1
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:424)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:229)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:340)
... 35 more
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.eclipse.emf:org.eclipse.emf.mwe.core:jar:1.6.1
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:414)
... 37 more
pom.xml /org.openhab.binding.qbus line 7 Maven Build Problem
Then I execute Maven - Update project. And everything is fine again for Eclipse.
What could cause this problem, and how can I avoid it in the future?
Kind regards,
Koen Schockaert