Package org.openrewrite.maven
package org.openrewrite.maven
-
ClassesClassDescriptionBase mojo for rewrite:dryRun and rewrite:dryRunNoFork.Run the configured recipes and apply the changes locally.Configure rewrite-maven-plugin (or any other plugin) in the project.
For example:
./mvnw rewrite:configure -DactiveRecipes=org.openrewrite.java.spring.boot2.SpringBoot1To2Migration -Ddependencies=org.openrewrite.recipe:rewrite-spring:4.17.0Generate a CycloneDx bill of materials outlining the project's dependencies, including transitive dependencies.Add rewrite-maven-plugin (or any other plugin) to the project.
For example:
./mvnw rewrite:init -DactiveRecipes=org.openrewrite.java.spring.boot2.SpringBoot1To2Migration -Ddependencies=org.openrewrite.recipe:rewrite-spring:4.17.0Remove rewrite-maven-plugin (or any other plugin) from the project.
For example:
./mvnw rewrite:removeGenerate a report of available recipes found on the classpath.
./mvnw rewrite:discover -Ddetail=true -Drecipe=<recipe-name>to display recipe configuration details.Generate warnings to the console for any recipe that would make changes, but do not make changes.Generate warnings to the console for any recipe that would make changes, but do not make changes.Run the configured recipes and apply the changes locally.Run the configured recipes and apply the changes locally.APrintOutputCapturethat sanitizes the diff of informational markers, so these aren't accidentally committed to source control.