Tweaks to pom and warnings.

* Update pom.xml to reference Java7.
* Suppress warnings on unused listener variables.