Maven 3.1 support with dependency cleanup

based on https://github.com/TimMoore/mojo-executor/pull/14 plus dependencies cleanup