Fix errors in the pom file. Also remove unused dependency.