One of major advantages of changes made after smarthome/openhab reintegration is plain maven build. The plain difference between openhab 1 and openhab > 2.5.0.M1 is how the whole thing is building internally. Thanks to great contributions from active maintainers and binding developers build is much more stable, despite of Eclipse glitches occurring here and there.
As a user, you might not notice that at all, but as a contributor, you most likely suffered some of the pains caused by build changes.
This simple tutorial is composed from few videos:
The magic pom contents for you:
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.openhab</groupId> <artifactId>openhab-super-pom</artifactId> <version>1.0.1</version> </parent> <groupId>org.openhab</groupId> <artifactId>openhab</artifactId> <version>2.5.0-SNAPSHOT</version> <packaging>pom</packaging> <modules> <module>openhab-core</module> <module>openhab2-addons</module> <module>openhab-webui</module> <module>openhab-distro</module> </modules> </project>
Importing project into intellij:
Working with milestone build:
Getting into IDE after 30 minutes of waiting: