In the classic software lifecycle, unit tests are naturally followed by the integration phase. Earlier, we studied the unit testing of a Maven plugin, and now we will deepen the integration phase.
The integration phase is covered by maven-invoker-plugin
because this plugin can run a set of Maven projects (features that we didn't use at all for our plugin project) and can verify the output generated from the project launched. The ability to verify the output generated from the project that is executed is accomplished by a script that could be a bash script or a groovy script. This plugin is included in a specific build profile for the integration phase.
Whenever we want to perform integration tests, we have to run the following command:
$ mvn integration-test -Prun-its
When we run such a command, Maven executes the plugin related to the profile, and creates a local repository structure...