Package org.openrewrite.maven
Class InitMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.openrewrite.maven.ConfigurableRewriteMojo
-
- org.openrewrite.maven.AbstractRewriteMojo
-
- org.openrewrite.maven.InitMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="init", threadSafe=true) @Execute public class InitMojo extends AbstractRewriteMojo
-
-
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 StringgroupIdprotected booleanrootOnlyprotected Stringversion-
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, sizeThresholdMb, skipMavenParsing
-
-
Constructor Summary
Constructors Constructor Description InitMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()protected StringgetConfiguration()protected StringgetExecutions()protected StringgetVersion()-
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
-
-
-
-
Field Detail
-
groupId
@Parameter(property="groupId", defaultValue="org.openrewrite.maven") protected String groupId
-
artifactId
@Parameter(property="artifactId", defaultValue="rewrite-maven-plugin") protected String artifactId
-
rootOnly
@Parameter(property="rootOnly", defaultValue="true") protected boolean rootOnly
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getVersion
protected String getVersion()
-
-