Package org.openrewrite.maven
Class ConfigurableRewriteMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.openrewrite.maven.ConfigurableRewriteMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AbstractRewriteMojo
public abstract class ConfigurableRewriteMojo extends org.apache.maven.plugin.AbstractMojo
-
-
Field Summary
Fields Modifier and Type Field Description protected @Nullable StringcheckstyleConfigFileprotected booleanfailOnInvalidActiveRecipesWhether to throw an exception if an activeRecipe fails configuration validation.protected @Nullable StringmetricsPasswordprotected @Nullable StringmetricsUriprotected @Nullable StringmetricsUsernameprotected @Nullable StringpomCacheDirectoryprotected booleanpomCacheEnabled
-
Constructor Summary
Constructors Constructor Description ConfigurableRewriteMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<String>getActiveRecipes()protected Set<String>getActiveStyles()protected Set<String>getRecipeArtifactCoordinates()-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Field Detail
-
metricsUri
@Nullable @Parameter(property="rewrite.metricsUri", alias="metricsUri") protected @Nullable String metricsUri
-
metricsUsername
@Nullable @Parameter(property="rewrite.metricsUsername", alias="metricsUsername") protected @Nullable String metricsUsername
-
metricsPassword
@Nullable @Parameter(property="rewrite.metricsPassword", alias="metricsPassword") protected @Nullable String metricsPassword
-
pomCacheEnabled
@Parameter(property="rewrite.pomCacheEnabled", alias="pomCacheEnabled", defaultValue="true") protected boolean pomCacheEnabled
-
pomCacheDirectory
@Nullable @Parameter(property="rewrite.pomCacheDirectory", alias="pomCacheDirectory") protected @Nullable String pomCacheDirectory
-
checkstyleConfigFile
@Nullable @Parameter(property="rewrite.checkstyleConfigFile", alias="checkstyleConfigFile") protected @Nullable String checkstyleConfigFile
-
failOnInvalidActiveRecipes
@Parameter(property="rewrite.failOnInvalidActiveRecipes", alias="failOnInvalidActiveRecipes", defaultValue="false") protected boolean failOnInvalidActiveRecipesWhether to throw an exception if an activeRecipe fails configuration validation. This may happen if the activeRecipe is improperly configured, or any downstream recipes are improperly configured.For the time, this default is "false" to prevent one improperly recipe from failing the build. In the future, this default may be changed to "true" to be more restrictive.
-
-