If I put a breakpoint in the activate() of my service, I can clearly see that its starting, but without me changing anything, its now now showing up in the search of the UI,
Also, when it did run, if JSONException was in the code, the service didnt load.
Not looking for a solution (although that would be nice) but more a point in the right direction. Im finding the whole process of developing for Openhab2 tiresome and frustrating, and I code for a living!! (although not in java)
Update:
It works!
I would love to post a solution for others, but I changed so many settings, im not sure which actually cured the issue.
I think it was… select the project, right click, select import, import archive file, select your problem .jar
The final piece of the puzzle, is how to pass parameters to the discovery service.
so far, I have created a .cfg file containing