rewrite:run – rewrite-maven-plugin (original) (raw)
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.
Parameter Details
No description.
- Type:
java.util.LinkedHashSet<java.lang.String> - Required:
No - User Property:
rewrite.activeRecipes
No description.
- Type:
java.util.LinkedHashSet<java.lang.String> - Required:
No - User Property:
rewrite.activeStyles
Allows adding additional plain text masks without overriding the defaults.
- Type:
java.util.LinkedHashSet<java.lang.String> - Required:
No - User Property:
rewrite.additionalPlainTextMasks
No description.
- Type:
java.lang.String - Required:
No - User Property:
rewrite.checkstyleConfigFile - Alias:
checkstyleConfigFile
No description.
- Type:
boolean - Required:
No - User Property:
rewrite.checkstyleDetectionEnabled - Default:
true - Alias:
checkstyleDetectionEnabled
No description.
- Type:
java.lang.String - Required:
No - User Property:
rewrite.configLocation - Default:
${maven.multiModuleProjectDirectory}/rewrite.yml - Alias:
configLocation
No description.
- Type:
java.util.LinkedHashSet<java.lang.String> - Required:
No - User Property:
rewrite.exclusions
No description.
- Type:
boolean - Required:
No - User Property:
rewrite.exportDatatables - Default:
false
Whether 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 improper recipe from failing the build. In the future, this default may be changed to "true" to be more restrictive.
- Type:
boolean - Required:
No - User Property:
rewrite.failOnInvalidActiveRecipes - Default:
false - Alias:
failOnInvalidActiveRecipes
No description.
- Type:
java.util.LinkedHashSet<java.lang.String> - Required:
No - User Property:
rewrite.options
Override default plain text masks. If this is specified, rewrite.additionalPlainTextMasks will have no effect.
- Type:
java.util.LinkedHashSet<java.lang.String> - Required:
No - User Property:
rewrite.plainTextMasks
No description.
- Type:
java.lang.String - Required:
No - User Property:
rewrite.pomCacheDirectory - Alias:
pomCacheDirectory
No description.
- Type:
boolean - Required:
No - User Property:
rewrite.pomCacheEnabled - Default:
true - Alias:
pomCacheEnabled
No description.
- Type:
java.util.LinkedHashSet<java.lang.String> - Required:
No - User Property:
rewrite.recipeArtifactCoordinates
The level used to log changes performed by recipes.
- Type:
org.openrewrite.maven.LogLevel - Required:
No - User Property:
rewrite.recipeChangeLogLevel - Default:
WARN
Whether to resolve properties in YAML configuration files, like${project.artifactId }. Default true; set to false to disable.
- Type:
boolean - Required:
No - User Property:
rewrite.resolvePropertiesInYaml - Default:
true
No description.
- Type:
boolean - Required:
No - User Property:
rewrite.skip - Default:
false
No description.
- Type:
boolean - Required:
No - User Property:
rewrite.runPerSubmodule - Default:
false - Alias:
runPerSubmodule
No description.
- Type:
int - Required:
No - User Property:
sizeThresholdMb - Default:
10
When enabled, skip parsing Maven `pom.xml`s, and any transitive poms, as source files. This can be an efficiency improvement in certain situations.
- Type:
boolean - Required:
No - User Property:
skipMavenParsing - Default:
false