This post pretends to describe how to add integration tests to maven plugins. We make use of the maven-invoker-plugin and add pre and post-build scripts to assert we achieve the results we are looking for.
If your custom plugins are using Sonatype’s aether api, you might have already found out that in Maven version 3.1 and up they have changed to Eclipse aether’s api instead of Sonatype aether.
This blog posts pretends to give a rather simple example on how your plugin can work with both. Albeit that you want to be compatible with 3.1 or that you want to be backwards compatible with 3.0 (and maybe even 2.0).