[BUILD] Java version line was missleading

calling `java -version` might not print the java version that
is actually used to run maven. This commit prints a more accurate version