Class AbstractRewriteMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.openrewrite.maven.ConfigurableRewriteMojo
org.openrewrite.maven.AbstractRewriteMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractRewriteBaseRunMojo, CycloneDxBomMojo, RewriteDiscoverMojo

public abstract class AbstractRewriteMojo extends ConfigurableRewriteMojo
  • Field Details

    • project

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

      @Parameter(property="rewrite.resolvePropertiesInYaml", defaultValue="true") protected boolean resolvePropertiesInYaml
    • runtime

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

      @Component protected org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter
    • repositorySystem

      @Component protected org.eclipse.aether.RepositorySystem repositorySystem
  • Constructor Details

    • AbstractRewriteMojo

      public AbstractRewriteMojo()
  • Method Details

    • environment

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

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

      protected org.openrewrite.ExecutionContext executionContext()
    • getBuildRoot

      protected Path getBuildRoot()
    • getRecipeArtifactCoordinatesClassloader

      @Nullable protected @Nullable URLClassLoader getRecipeArtifactCoordinatesClassloader() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException