Package org.openrewrite.maven
Class RewriteDiscoverMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.openrewrite.maven.ConfigurableRewriteMojo
org.openrewrite.maven.AbstractRewriteMojo
org.openrewrite.maven.RewriteDiscoverMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="discover",
threadSafe=true,
requiresProject=false,
aggregator=true)
public class RewriteDiscoverMojo
extends AbstractRewriteMojo
Generate a report of available recipes found on the classpath.
./mvnw rewrite:discover -Ddetail=true -Drecipe=<recipe-name> to display recipe configuration details. For example:./mvnw rewrite:discover -Ddetail=true -Drecipe=org.openrewrite.java.format.AutoFormat-
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, runPerSubmodule, sizeThresholdMb, skipMavenParsingFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.openrewrite.maven.AbstractRewriteMojo
environment, executionContext, getBaseDir, getRecipeClassloader, getRecipeDescriptor, listResults, logRecipesThatMadeChangesMethods inherited from class org.openrewrite.maven.ConfigurableRewriteMojo
getActiveRecipes, getActiveStyles, getExclusions, getPlainTextMasks, getRecipeArtifactCoordinatesMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
RewriteDiscoverMojo
public RewriteDiscoverMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-