Fix pom deps and Java version.