openhab / openhab1-addons

Add-ons for openHAB 1.x
Eclipse Public License 2.0
3.43k stars 1.71k forks source link

Enforce Java 8 #5946

Closed wborn closed 4 years ago

wborn commented 4 years ago

The build fails when using newer Java versions and the root cause is not very obvious.

The maven-assembly-plugin has been updated from 2.2 (2011) to resolve an NPE when used with newer versions of the enforcer:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2:single (distro-assembly) on project openhab: Execution distro-assembly of goal org.apache.maven.plugins:maven-assembly-plugin:2.2:single failed.: NullPointerException -> [Help 1]

The outputDirectory change is to resolve the following warnings being logged by the newer assembly plugin:

[WARNING] The assembly descriptor contains a *nix-specific root-relative reference (starting with slash). This is not portable and might fail on Windows: /

Signed-off-by: Wouter Born github@maindrain.net