Maven Invoker Plugin
The Invoker Plugin is used to run a set of Maven projects. The plugin can determine whether each project execution is successful, and optionally can verify the output generated from a given project execution.
This plugin is in particular handy to perform integration tests for other Maven plugins. The Invoker Plugin can be employed to run a set of test projects that have been designed to assert certain features of the plugin under test.
The plugin has four goals meant to participate in the default build lifecycle:
invoker:installcopies the project artifacts and dependencies of the main build into a dedicated local repository to prepare the execution of the selected sub projects in an isolated environment.invoker:integration-testruns a set of Maven projects in a directory.invoker:verifyverifies the result of invoker:integration-test.invoker:runruns a set of Maven projects in a directory and verifies the result. This is equivalent to running bothinvoker:integration-testandinvoker:verify.
This last goal is intended for usage with the site lifecycle:
invoker:reportintegrates the results from previous builds into the site.
Reference :