Running mvn rewrite:run in child project results in:
[INFO] --- rewrite-maven-plugin:4.19.0:run (default-cli) @ child ---
[INFO] Using active recipe(s) [org.openrewrite.java.RemoveUnusedImports]
[INFO] Using active styles(s) []
[INFO] Validating active recipes...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.563 s
[INFO] Finished at: 2022-02-11T22:04:29+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.openrewrite.maven:rewrite-maven-plugin:4.19.0:run (default-cli) on project child: Execution default-cli of goal org.openrewrite.maven:rewrite-maven-plugin:4.19.0:run failed: Unable to download metadata foo:parent:1.0-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
Using maven plugin 4.19.0.
With parent pom.xml installed in local maven repository with
mvn install
:And child project:
Running
mvn rewrite:run
in child project results in: