Add JAVA_HOME and Java version to build lifecycle, for CI integration purposes