Approach for the development of an I/O plugin


I would like to create an I/O plugin (such as the Azure IoT Hub) for a remote virtual assistant. The goal is to use OpenHab only for its device abstraction (no GUI, automation, sitemap needed) and I would like to know what is the best of the following two approaches (from an experimental development phase perspective):

1 - Select the appropriate core bundles and binding bundles that I will use along with my I/O plugin and build a simple jar using the Bnd jar exporter. In this case I use OpenHab like library and select only what I need (ei, no karaf).

2 - Use the OpenHab full distro and launch it from my Eclipse IDE along with my I/O plugin. In this case, is it simple to debug my plugin?

Thanks a lot,