Package org.openrewrite.maven
Class RewriteRunMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.openrewrite.maven.ConfigurableRewriteMojo
org.openrewrite.maven.AbstractRewriteMojo
org.openrewrite.maven.AbstractRewriteRunMojo
org.openrewrite.maven.RewriteRunMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="run",
requiresDependencyResolution=TEST,
threadSafe=true,
defaultPhase=PROCESS_TEST_CLASSES)
@Execute(phase=PROCESS_TEST_CLASSES)
public class RewriteRunMojo
extends AbstractRewriteRunMojo
Run the configured recipes and apply the changes locally.
This variant of rewrite:run will fork the maven life cycle and can be run as a "stand-alone" goal. It will execute the maven build up to the process-test-classes phase.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openrewrite.maven.AbstractRewriteMojo
AbstractRewriteMojo.ResultsContainer -
Field Summary
Fields inherited from class org.openrewrite.maven.AbstractRewriteMojo
mavenSession, project, repositorySystem, runtime, settingsDecrypterFields inherited from class org.openrewrite.maven.ConfigurableRewriteMojo
activeRecipes, activeStyles, checkstyleConfigFile, checkstyleDetectionEnabled, configLocation, failOnInvalidActiveRecipes, metricsPassword, metricsUri, metricsUsername, pomCacheDirectory, pomCacheEnabled, rewriteActiveRecipes, rewriteActiveStyles, rewriteSkip, runPerSubmodule, sizeThresholdMb, skipMavenParsingFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.openrewrite.maven.AbstractRewriteRunMojo
executeMethods inherited from class org.openrewrite.maven.AbstractRewriteMojo
environment, environment, executionContext, getBuildRoot, getRecipeArtifactCoordinatesClassloader, getRecipeDescriptor, listResults, loadSourceSet, logRecipesThatMadeChanges, repositoryRoot, runRecipeMethods inherited from class org.openrewrite.maven.ConfigurableRewriteMojo
getActiveRecipes, getActiveStyles, getExclusions, getPlainTextMasks, getRecipeArtifactCoordinates, loadStylesMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
RewriteRunMojo
public RewriteRunMojo()
-