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:install
copies 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-test
runs a set of Maven projects in a directory.invoker:verify
verifies the result of invoker:integration-test.invoker:run
runs a set of Maven projects in a directory and verifies the result. This is equivalent to running bothinvoker:integration-test
andinvoker:verify
.
This last goal is intended for usage with the site lifecycle:
invoker:report
integrates the results from previous builds into the site.
Reference :