Package org.openrewrite.maven
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,RewriteDiscoverMojo
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openrewrite.maven.ConfigurableRewriteMojo
ConfigurableRewriteMojo.State -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.maven.project.MavenProjectprotected org.eclipse.aether.RepositorySystemprotected booleanprotected org.apache.maven.rtinfo.RuntimeInformationprotected org.apache.maven.settings.crypto.SettingsDecrypterFields inherited from class org.openrewrite.maven.ConfigurableRewriteMojo
activeRecipes, activeStyles, checkstyleConfigFile, checkstyleDetectionEnabled, configLocation, failOnInvalidActiveRecipes, mavenSession, metricsPassword, metricsUri, metricsUsername, pluginDescriptor, pomCacheDirectory, pomCacheEnabled, rewriteSkip, runPerSubmodule, sizeThresholdMb, skipMavenParsingFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.openrewrite.config.Environmentprotected org.openrewrite.config.Environmentenvironment(@Nullable ClassLoader recipeClassLoader) protected org.openrewrite.ExecutionContextprotected Pathprotected @Nullable URLClassLoaderMethods inherited from class org.openrewrite.maven.ConfigurableRewriteMojo
allProjectsMarked, getActiveRecipes, getActiveStyles, getExclusions, getPlainTextMasks, getRecipeArtifactCoordinates, loadStyles, putStateMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
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
-
getRecipeArtifactCoordinatesClassloader
@Nullable protected @Nullable URLClassLoader getRecipeArtifactCoordinatesClassloader() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-