I’m trying to set up a development environment for OpenHAB 2 in NetBeans. I’m making notes as I go along and will make these available when I’ve finished.
Compiling and building the relevant OpenHAB 2 projects is straight-forward and much easier than with OpenHAB 1. Congratulations to those responsible.
Having built the projects, I’d like to be able to run and debug them also from NetBeans. This is where the problems seem to start. The stuff in the
launch directory (
openhab.target) is all pure Eclipse microcosm as far as I can tell.
To start an OSGi project in NetBeans I have in the past defined two actions,
run project and
debug project, which use
org.codehaus.mojo:exec-maven-plugin:1.2.1:exec with appropriate arguments to start the project. Where can I find an explanation of what Eclipse does so I can translate it into something similar that NetBeans can handle? Is there currently a way of starting the runtime with Maven?
On the naive assumption that it’s easier, I’m working initially from the offline distribution and trying to understand from
target/karaf/bin what is needed. Is there a better approach?