Building action fails


(Aydar) #1

Hello, I can’t build telegram action, it fails on dependencies

root@kali:~/Git/openhab1-addons/bundles/action/org.openhab.action.telegram# mvn package
[INFO] Scanning for projects…
[INFO] Computing target platform for MavenProject: org.openhab.action:org.openhab.action.telegram:1.12.0-SNAPSHOT @ /root/Git/openhab1-addons/bundles/action/org.openhab.action.telegram/pom.xml
[INFO] Fetching p2.index from https://openhab.jfrog.io/openhab/eclipse-smarthome-stable/ (172B)
[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-core/2.0.0
[INFO] Adding repository https://dl.bintray.com/openhab/p2/openhab-deps-repo/1.0.12
[INFO] Resolving dependencies of MavenProject: org.openhab.action:org.openhab.action.telegram:1.12.0-SNAPSHOT @ /root/Git/openhab1-addons/bundles/action/org.openhab.action.telegram/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.action.telegram 1.12.0.qualifier
[ERROR] Missing requirement: org.eclipse.smarthome.core 0.10.0.201804131043 requires ‘package javax.measure 0.0.0’ but it could not be found
[ERROR] Cannot satisfy dependency: org.eclipse.smarthome.config.core 0.10.0.201804131043 depends on: package org.eclipse.smarthome.core.common 0.0.0
[ERROR] Cannot satisfy dependency: org.openhab.action.telegram 1.12.0.qualifier depends on: package org.openhab.core.items 0.0.0
[ERROR] Cannot satisfy dependency: org.openhab.core.compat1x 2.0.0 depends on: package org.eclipse.smarthome.config.core 0.0.0
[ERROR]
[ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.
[ERROR] Cannot resolve dependencies of MavenProject: org.openhab.action:org.openhab.action.telegram:1.12.0-SNAPSHOT @ /root/Git/openhab1-addons/bundles/action/org.openhab.action.telegram/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

How to fix that?


(hr2) #2

What system and what versions? I looks like openHAB stable (2.2.0) and Telegram 1.12.0-SNAPSHOT. How du you install the Binding?


(Aydar) #3

System latest Kali Linux, also tried on clean Debian 9.4 x64. I know how to install action/binding, I need to build an action from source. Earlier the building passed without problems, but now there were errors.


(namraccr) #4

Try doing a mvn clean install from the project root.


(llc) #5

I also encountered the same problem, this solution does not work