Howto build binding 2.2.0 ? (p2-smarthome-release load fail)

Wonder how I can/should built in a simple way a specific bundle that I’ve modified for myself.
For some vague reason, I’m no longer able to do this because external resources are missing.

For his I went into my bundle directory …/openhab2-addons/addons/binding/ and
execute mvn clean install which failed with:

INFO] Scanning for projects…
[INFO] Computing target platform for MavenProject: @ /home/pafoxp/code-openhab/openhab2-addons/addons/binding/
[INFO] Fetching p2.index from (172B)
[INFO] Fetching p2.index from (172B)
[INFO] Adding repository
[INFO] Adding repository
[ERROR] Internal error: java.lang.RuntimeException: Failed to load p2 repository with ID ‘p2-smarthome-release’ from location No repository found at -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Failed to load p2 repository with ID ‘p2-smarthome-release’ from location
at org.apache.maven.DefaultMaven.execute(
at org.apache.maven.cli.MavenCli.execute(



The eclipse smartphone project has been archived and for archived projects the download links don’t seem to be provided anymore, but you can download all: although I don’t know if that would make it any easier if you downloaded the archive.

Do you need a specific 2.2 version or do you just want to update your version with some modifications and use it with 2.4/2.5.x?

Thx. I’m clearly not familiar with the IDE setup … and feel like searching in the dark as a novice … despite having “programming” expertise… The same happened in the past where I tried to contribute and quickly abandoned that idea as I lost the way in in the vast galaxy of the complex set-up environment. The latter is of course the sea where core-maintainers will swim with ease.

The biggest question I’ve, how can an individual properly compile/built openHAB (offline@home) if Eclipse has archived Smarthome ?

He’re I bypassed things by copying critical content parts and point the POM file to my own version’ed localised http-server. My (qnap NAS) openhab runs the core at “0.10.0.b1”.
Thought this bypass now works (I can operate "mvn. clean install"again), it feels a bit stupid… doing it like this… which require doing this each time I pull a new copy of the source.

Is there somehow an instruction how one can/should compile/built openHAB at home without mimicking environmental things ?

tia Peter

With the achiving of Eclipse Smarthome and more specific the change of openHAB to move the core back to openHAB and change of the build system it becomes much more different to keep old bindings up and running.

With openHAB 2.5 the build system was changed to maven/bnd, making it independent of Eclipse. The Eclipse IDE documentation has also been updated on installation and debugging. see: I would advice to start with a new IDE installation and see if you can update your system. if you develop a binding with the new buildsystem against 2.5 it can.might still work with openHAB 2.4. There were some changes, but very minimal.
To summize I would not invest to much in trying to keep the old situation alive as there is very little knowledge and porbably little support on how to do that. Meaning if you encounter problems it will be difficult to get anwers.

Thx, I appreciate your time and explanation. I begin to understand what/why openHAB is strategically is doing in order to loosen itself from Eclipse and operate as an selfsupporting platform.

Me, myself en and I… prefer NOT to use any IDE because it is difficult to remember & doing things. The freetime changes, I do at home are often very limited and small which can be done manually. Of course I understand the reasons and validation for an IDE which is essential for maintaining complex environments (as a whole).