4. Paste source files from this repo into the folder `openhab-addons/bundles/org.openhab.binding.openlicht`
## Open Project in IntelliJ
When opened IntelliJ use `File` -> `New` -> `Project from Existing Sources` and select the pom.xml from the root folder openhab-addons.
## Building
1. Use Maven in the right sidebar if installed (Search for `openHAB Add-ons :: Bundles :: OpenLicht Binding`).
2. To create a jar run `Lifecycle` -> `package` (Always good to `Lifecycle` -> `clean` before doing this).
## Debugging/Running
7. Start OH3 runtime (`start_debug.sh` for debugging, `start.sh` for production).
8. Go to OSGI-Console of OH and call `feature:install openhab-transport-mqtt` (if not done yet in current OH installation).
9. Paste the jar file from `openhab-addons/bundles/org.openhab.binding.openlicht/target/` in addons folder of OH runtime (named `addons`).
## Hint
If any error occur try executing `mvn spotless:apply` to resolve them.
For any further information use [this guide](https://www.openhab.org/docs/developer/) and for IntelliJ related things look [here](https://www.openhab.org/docs/developer/ide/intellij.html)