I am looking for a way to run a maven plugin, like the formatter plugin or checkstyle, on all sub-modules in parallel. It would look like mvn -T 1C formatter:format
with an additional magic option.
This is a bit different from running standard maven actions because each module are independent from each other regardless formatting.
For example, let's consider a project with two sub-modules lib and app. app depends on lib, implementing its underlying logic.
When compiling code, it is not possible to compile app without first compiling lib. However, when formatting code, we can safely do both in parallel.
I suspect that this is not possible because this does not follow maven architecture, oriented towards predefined life-cycles on which we hook some plugins. But I may have missed something