Fixed pom.xml so the correct Java version can be chosen.