Class ConfigureMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="configure", threadSafe=true) @Execute public class ConfigureMojo extends AbstractRewriteMojo
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.0
  • Field Details

    • groupId

      @Parameter(property="groupId", defaultValue="org.openrewrite.maven") protected String groupId
    • artifactId

      @Parameter(property="artifactId", defaultValue="rewrite-maven-plugin") protected String artifactId
    • configuration

      @Parameter(property="configuration") @Nullable protected String configuration
    • dependencies

      @Parameter(property="dependencies") @Nullable protected String dependencies
    • executionPhase

      @Parameter(property="executionPhase") @Nullable protected String executionPhase
    • executionGoals

      @Parameter(property="executionGoals") @Nullable protected String executionGoals
  • Constructor Details

    • ConfigureMojo

      public ConfigureMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • getConfiguration

      @Nullable protected String getConfiguration()
    • getExecutions

      @Nullable protected String getExecutions()