Update pom.xml versions and fix deprecations.