Running Rewrite on a multi-module Maven project

If you have a Maven project with multiple modules, you may run into errors finding and running the OpenRewrite Maven plugin.
There is currently an open issue to better support multi-module Maven projects that you can +1 on if you'd like.
In the meantime, one way to work around this is to add a profile on the parent POM:
You can then run OpenRewrite from any submodule using this command: mvn -Popenrewrite rewrite:run.