I installed openHAB Eclipse IDE and run OH first time > all ok.
Then I changed openhab2-addons folder to a checkout of a fork of the same openhab2-addons repo
When I try to rebuild an existing binding i get:
$ cd ~/openhab2/git/openhab2-addons/addons/binding/org.openhab.binding.nest (master)
$ mvn clean install
I obtain:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 51.001 s
[INFO] Finished at: 2018-09-15T18:47:20+02:00
[INFO] Final Memory: 44M/402M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.openhab.tools.sat:sat-plugin:0.5.0:checkstyle (default)
on project org.openhab.binding.nest: Unable to execute mojo: An error has occurred in
Checkstyle report generation. Failed during checkstyle execution: Unable to find
suppressions file at location: ...\openhab2\git\openhab2-addons\addons\binding\org.openhab.binding.nest\tools\checkstyle_suppressions.xml:
Could not find resource '...\openhab2\git\openhab2-addons\addons\binding\org.openhab.binding.nest\tools\checkstyle_suppressions.xml'. -> [Help 1]
I forked myseld the openhab2-addons repo, after 20min from the fresh Eclipse installation…
so they should be no difference, at least for being able to compile everything.
Basically what I want to achieve is to have a fresh openHAB Eclipse installation but instead of using the master openhab2-addons repo, I want to use my fork of it.
(I am preparing a push request, so I am moving my binding project to the openhab2-addons forked repo).
I looked for specific instruction/hints for doing this in the proper manner, but apparently the link is broken:
Note that you will find the sources in a subfolder called “git” within your selected installation folder. You can use any kind of git client here, if you do not want to use the git support from within the Eclipse IDE. If you want to push changes, you need to do so to your personal fork of the repository in order to create a pull request. You will find more details in the “How to contribute” documentation.
I want to do exactly that in the right way, but the link is BROKEN !
Ok i repeated a couple of times the process:
Install Eclipse IDE > remove openhab2-addons repo > checkout out my fork of openhab2-addons repo > restart Eclipse 3/4 times…
at the end it worked.
I have now working Eclipse IDE openHAB environement with the openhab2-addons repo linked to my fork.