Class AbstractRewriteMojo

    • Field Detail

      • project

        @Parameter(defaultValue="${project}",
                   readonly=true,
                   required=true)
        protected org.apache.maven.project.MavenProject project
      • runtime

        @Component
        protected org.apache.maven.rtinfo.RuntimeInformation runtime
      • repositorySystem

        @Component
        protected org.apache.maven.repository.RepositorySystem repositorySystem
      • mavenSession

        @Parameter(defaultValue="${session}",
                   readonly=true)
        protected org.apache.maven.execution.MavenSession mavenSession
    • Constructor Detail

      • AbstractRewriteMojo

        public AbstractRewriteMojo()
    • Method Detail

      • environment

        protected org.openrewrite.config.Environment environment()
                                                          throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • executionContext

        protected org.openrewrite.ExecutionContext executionContext()
      • getBaseDir

        protected Path getBaseDir()
      • listResults

        protected AbstractRewriteMojo.ResultsContainer listResults()
                                                            throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • logRecipesThatMadeChanges

        protected void logRecipesThatMadeChanges​(org.openrewrite.Result result)
      • getRecipeDescriptor

        public static org.openrewrite.config.RecipeDescriptor getRecipeDescriptor​(String recipe,
                                                                                  Collection<org.openrewrite.config.RecipeDescriptor> recipeDescriptors)
                                                                           throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException