Package org.openrewrite.maven
Class ConfigureMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.openrewrite.maven.ConfigurableRewriteMojo
-
- org.openrewrite.maven.AbstractRewriteMojo
-
- org.openrewrite.maven.ConfigureMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="configure", threadSafe=true) @Execute public class ConfigureMojo extends AbstractRewriteMojoConfigure rewrite-maven-plugin (or any other plugin) in the project.
For example:
./mvnw rewrite:configure -DactiveRecipes=org.openrewrite.java.spring.boot2.SpringBoot1To2Migration -Ddependencies=org.openrewrite.recipe:rewrite-spring:4.17.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openrewrite.maven.AbstractRewriteMojo
AbstractRewriteMojo.ResultsContainer
-
-
Field Summary
Fields Modifier and Type Field Description protected StringartifactIdprotected Stringconfigurationprotected Stringdependenciesprotected StringexecutionGoalsprotected StringexecutionPhaseprotected StringgroupId-
Fields inherited from class org.openrewrite.maven.AbstractRewriteMojo
mavenSession, project, repositorySystem, runtime, settingsDecrypter
-
Fields inherited from class org.openrewrite.maven.ConfigurableRewriteMojo
checkstyleConfigFile, failOnInvalidActiveRecipes, metricsPassword, metricsUri, metricsUsername, pomCacheDirectory, pomCacheEnabled, runPerSubmodule, sizeThresholdMb, skipMavenParsing
-
-
Constructor Summary
Constructors Constructor Description ConfigureMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()protected StringgetConfiguration()protected StringgetExecutions()-
Methods inherited from class org.openrewrite.maven.AbstractRewriteMojo
environment, executionContext, getBaseDir, getRecipeClassloader, getRecipeDescriptor, listResults, logRecipesThatMadeChanges
-
Methods inherited from class org.openrewrite.maven.ConfigurableRewriteMojo
getActiveRecipes, getActiveStyles, getExclusions, getRecipeArtifactCoordinates
-
-