Class ConfigureMojo

  • 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 Detail

      • 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 Detail

      • ConfigureMojo

        public ConfigureMojo()
    • Method Detail

      • 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