Closed mcguiresean closed 6 years ago
@mcguiresean Thank you for the new PR.
I've done some first testing and it looks good. I have just added some minor changes.
Did you try to compile the code with maven: mvn clean package
?
I'll get an error:
[INFO] Scanning for projects... Downloading: https://openhab.jfrog.io/openhab/libs-snapshot/org/openhab/pom-tycho/2.2.0-SNAPSHOT/maven-metadata.xml Downloaded: https://openhab.jfrog.io/openhab/libs-snapshot/org/openhab/pom-tycho/2.2.0-SNAPSHOT/maven-metadata.xml (599 B at 0.4 KB/sec) [WARNING] Could not transfer metadata org.openhab:pom-tycho:2.2.0-SNAPSHOT/maven-metadata.xml from/to p2-smarthome (https://openhab.jfrog.io/openhab/eclipse-smarthome-stable): Cannot access https://openhab.jfrog.io/openhab/eclipse-smarthome-stable with type p2 using the available connector factories: BasicRepositoryConnectorFactory [WARNING] Could not transfer metadata org.openhab:pom-tycho:2.2.0-SNAPSHOT/maven-metadata.xml from/to p2-openhab-deps-repo (https://dl.bintray.com/openhab/p2/openhab-deps-repo/${ohdr.version}): Cannot access https://dl.bintray.com/openhab/p2/openhab-deps-repo/${ohdr.version} with type p2 using the available connector factories: BasicRepositoryConnectorFactory Downloading: https://openhab.jfrog.io/openhab/libs-snapshot/org/openhab/pom/2.2.0-SNAPSHOT/maven-metadata.xml Downloaded: https://openhab.jfrog.io/openhab/libs-snapshot/org/openhab/pom/2.2.0-SNAPSHOT/maven-metadata.xml (593 B at 0.9 KB/sec) [WARNING] Could not transfer metadata org.openhab:pom:2.2.0-SNAPSHOT/maven-metadata.xml from/to p2-smarthome (https://openhab.jfrog.io/openhab/eclipse-smarthome-stable): Cannot access https://openhab.jfrog.io/openhab/eclipse-smarthome-stable with type p2 using the available connector factories: BasicRepositoryConnectorFactory [WARNING] Could not transfer metadata org.openhab:pom:2.2.0-SNAPSHOT/maven-metadata.xml from/to p2-openhab-deps-repo (https://dl.bintray.com/openhab/p2/openhab-deps-repo/${ohdr.version}): Cannot access https://dl.bintray.com/openhab/p2/openhab-deps-repo/${ohdr.version} with type p2 using the available connector factories: BasicRepositoryConnectorFactory [INFO] Computing target platform for MavenProject: org.openhab.binding:org.openhab.binding.mysensors:2.2.0-SNAPSHOT @ /home/tobof/git/openhab2-addons/addons/binding/org.openhab.binding.mysensors/pom.xml [INFO] Fetching p2.index from https://openhab.jfrog.io/openhab/eclipse-smarthome-stable/ (172B) [INFO] Adding repository https://openhab.jfrog.io/openhab/eclipse-smarthome-stable [INFO] Adding repository https://dl.bintray.com/openhab/p2/openhab-deps-repo/1.0.12 [INFO] Resolving dependencies of MavenProject: org.openhab.binding:org.openhab.binding.mysensors:2.2.0-SNAPSHOT @ /home/tobof/git/openhab2-addons/addons/binding/org.openhab.binding.mysensors/pom.xml [INFO] {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true, osgi.arch=x86} [ERROR] Cannot resolve project dependencies: [ERROR] Software being installed: org.openhab.binding.mysensors 2.2.0.qualifier [ERROR] Missing requirement: org.openhab.binding.mysensors 2.2.0.qualifier requires 'package org.openhab.core.events 0.0.0' but it could not be found [ERROR] [ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help. [ERROR] Cannot resolve dependencies of MavenProject: org.openhab.binding:org.openhab.binding.mysensors:2.2.0-SNAPSHOT @ /home/tobof/git/openhab2-addons/addons/binding/org.openhab.binding.mysensors/pom.xml: See log for details -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException
I've tried to switch over to org.eclipse.smarthome.io.transport.mqtt
and
org.eclipse.smarthome.core.events
which also compiles fine in eclipse, but is not able to run because of overlapping components (org.openhab.mqtt is needed by the mqtt binding, while org.eclipse.smarthome.io.transport.mqtt is loaded additionally for the mysensors binding.
Do you have an idea?