Fixed sanitytest to always use the same java and JAVA_HOME as maven.