Creating a Binding Skeleton for OpenHAB2


I’m interested in OpenHAB2 binding development. What I’d like to do is see if I can take an OpenHAB1 binding (InsteonPLM) and “convert” it to a native OpenHAB2 binding. (I’m not a developer, nor am I familiar with Java.)

To setup my IDE, I followed the instructions here:

I then went to:

However, I’m stuck. When I try to create the skeleton, my output looks like this:

Does anyone have have any ideas what’s going on and how to solve it? The instructions don’t say anything about manually creating a directory, so I’m wondering if I’m missing a step.

Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/plexus/logging/LoggerManager
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(
	at java.lang.Class.privateGetMethodRecursive(
	at java.lang.Class.getMethod0(
	at java.lang.Class.getMethod(
	at org.codehaus.plexus.classworlds.launcher.Launcher.getEnhancedMainMethod(
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.logging.LoggerManager
	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(
	at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(
	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(
	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(
	... 10 more
cp: directory org.openhab.binding.insteonplm does not exist


Its better to copy and paste (in eclipse) an existing but simple OH2 binding, like airquality. And then start putting your stuff in it.

Hi @diyha,

Thanks, I think I figured it out. My installation of Maven was corrupted. I’m not sure how this happened, but I reinstalled Maven and the skeleton script ran.



Just wondering if you got anywhere with the 2.x binding for InsteonPLM?

With support for 1.x bindings likely to be dropped soon, the need for bindings to be ported to 2.x is getting urgent…

Hi Nicholas-- live has intervened, and I haven’t gotten anywhere with it. I wasn’t aware that 1.x binding support was going to be dropped soon though.