Class InitMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="init",
          threadSafe=true)
    @Execute
    public class InitMojo
    extends AbstractRewriteMojo
    • Field Detail

      • groupId

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

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

        @Parameter(property="version")
        @Nullable
        protected String version
      • 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
      • rootOnly

        @Parameter(property="rootOnly",
                   defaultValue="true")
        protected boolean rootOnly
    • Constructor Detail

      • InitMojo

        public InitMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getVersion

        protected String getVersion()