I am having problems using the version (4.19.0 or 4.18.0) of the rewrite-maven-plugin. When I run the command "mvn rewrite:run" I get the following error.
[INFO] <<< rewrite-maven-plugin:4.19.0:run (default-cli) < process-test-classes @ migration_from_darwin_2.x <<<
[INFO]
[INFO]
[INFO] --- rewrite-maven-plugin:4.19.0:run (default-cli) @ migration_from_darwin_2.x ---
[INFO] Using active recipe(s) [com.yourorg.UpgradePom]
[INFO] Using active styles(s) []
[INFO] Validating active recipes...
[INFO] Parsing Java main files...
[INFO] Parsing Java test files...
[INFO] Running recipe(s)...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:25 min
[INFO] Finished at: 2022-02-16T11:27:41+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.openrewrite.maven:rewrite-maven-plugin:4.19.0:run (default-cli) on project
migration_from_darwin_2.x: Execution default-cli of goal org.openrewrite.maven:rewrite-maven-plugin:4.19.0:run failed:
java.lang.IllegalStateException: Maven visitors should not be visiting XML documents without a Maven marker -> [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
I have tried with the previous version, 4.17.4, and it works correctly.
Good morning,
I am having problems using the version (4.19.0 or 4.18.0) of the rewrite-maven-plugin. When I run the command "mvn rewrite:run" I get the following error.
I have tried with the previous version, 4.17.4, and it works correctly.
The POM I useis:
And the recipes to run: