Use maven processor plugin.

Fixes problem where 'mvn test' fails if not preceded by 'mvn clean'. Hopefully
this should also fix the build on travis-ci.