Cannot build 1.x Insteonplm plugin from Master

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 (172B)
[INFO] Adding repository
[INFO] Adding repository
[INFO] Adding repository
[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,, 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 requires 'package javax.measure 0.0.0' but it could not be found
[ERROR]   Cannot satisfy dependency: org.eclipse.smarthome.config.core 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] See 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] 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] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]

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"

@Kai - I’ve been a few different people reporting these issues. I haven’t found a solution yet and I’m not sure if this is an issue on my end or if this is a codebase issue. Any ideas?

What do you mean by that? FWIW, I would claim that the master branch should build smoothly as this is what Jenkins executes here. So if you are using some older branch, it might be worth doing a rebase onto the latest master.

Hi @Kai -

Thanks for the reply. I love OH and have been using it for several years now. In my opinion the best thing happening in IoT today!!

Sorry I probably wrote that kind of strangely. To be a little more clear: I’m trying to build openHAB1-addons from latest master. What I meant in the OP when I said “InsteonPLM branch” is that I’m trying to build just the InsteonPLM binding. So I pulled the latest from master, go into the InstoenPLM directory:


and I’m executing

mvn install

from that directory. When I do that I get the errors I reported int the OP.

I also tried:

mvn clean install

but get the same errors.

Do I have something wrong in my build environment? I’m not the best with java and don’t really understand the error output that well. Not sure how to debug this further. Appreciate any help you can provide.

You should in any case run a

mvn clean install

in the repo root as a first step. Afterwards, it should be possible to also build only the binding from within the sub-folder.

Hey @Kai,

I did as you suggested and did the

mvn clean install

from the repo root and then went to the InsteonPLM director and did a

mvn install

and now I successfully built the insteonPLM binding. Thanks for your help!!

1 Like