Hey all,
I’m trying to set up a build environment to do a few small changes. I cloned the latest 1.x code base and am trying to build the InsteonPLM branch.
I do to that directory and do 'mvn install" and get the following:
$ mvn install
[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject: org.openhab.binding:org.openhab.binding.insteonplm:1.12.0-SNAPSHOT @ /home/tom/Desktop/openhab1 addons/bundles/binding/org.openhab.binding.insteonplm/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-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.binding:org.openhab.binding.insteonplm:1.12.0-SNAPSHOT @ /home/tom/Desktop/openhab1-addons/bundles/binding/org.openhab.binding.insteonplm/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.insteonplm 1.12.0.qualifier
[ERROR] Missing requirement: org.eclipse.smarthome.core 0.10.0.201804200816 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.201804200816 depends on: package org.eclipse.smarthome.core.common 0.0.0
[ERROR] Cannot satisfy dependency: org.openhab.binding.insteonplm 1.12.0.qualifier depends on: package org.openhab.core.autoupdate 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.binding:org.openhab.binding.insteonplm:1.12.0-SNAPSHOT @ /home/tom/Desktop/openhab1-addons/bundles/binding/org.openhab.binding.insteonplm/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 had a working build environment in the past - not sure what I’m doing wrong:
$ java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
$ mvn --version
Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 1.8.0_171, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-121-generic", arch: "amd64", family: "unix"