I also had problems, the Eclipse IDE documentation needs to be updated again.
I am collaborating for a new Openwebnet binding that is not yet official.
I use Eclipse IDE with win10.
I used the following steps to install an Openwebnet binding
with it still official with the dependency of a lib file
:
- I cleaned up the old installations, under the
user
directory I deleted the directors
.bnd
-.eclipse
-.karaf
-.m2
-.p2
- I started from a new Eclipse IDE
- Installed the
03-2019
version - I selected
Java Development
and alsoAddons
- Wait for everything to be installed and compiled.
- I close all the
bindings
, except Astro, including theentry
(one gives me an error) via theClose Project
menu - I close Esclipse IDE
- Downloaded from your Openwebnet git
- I copy the Openwebnet folder under
\git\openhab2-addons\bundles
- Edit file
\bom\openhab-addons\pom.xml
and I insert:
<dependency>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.binding.openwebnet</artifactId>
<version>${project.version}</version>
</dependency>
- Edit
bundles\pom.xml
and insert
<module>org.openhab.binding.openwebnet</module>
- Edit
CODEOWNERS
and insert
/bundles/org.openhab.binding.openwebnet/ @massi
- Open Eclipse IDE
- Import existing Maven project by selecting the Openwebnet directors
- Flag and choose
OH2 Add-ons
- This in the case of an addiction, otherwise skip the step
- Double click on
app.bndrun
** Note problems: **
In the window for dragging inRun Requirements
the Openwebnet binding is not present, Astro yes.
I ran several tests to solve it but nothing … - Exit from Eclipse IDE
- From windows command prompt, by command
cd
I move under theopenhab2-addons
folder and compile it all with the commandmvn -DskipChecks -DskipTests clean install -U
- I open Eclipse
- Double click on
app.bndrun
- I dragged the Openwebnet and Astro bindings to
Run Requirements
(the command from the prompt solved the problem, there will be another way to avoid waiting 40min ???)
- ** Never used the
Resolve
button - I close and save
app.bndrun
- I copy my
.items`` .things
configuration files to Eclipse - Double click on
app.bndrun
- I press button
Debug OSGi
and wait for it to finish loading
Note:
The first time it doesn’t load Openwebnet but the second time it does. - From the Console I see a series of WARN and ERROR
- From browser
http: // localhost: 8080 / start / index
, usually waiting for preparation of PaperUI
excuse the aesthetics of the message but from the iPhone it is difficult