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: /
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