Class 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 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
      • skipMavenParsing

        @Parameter(property="skipMavenParsing",
                   defaultValue="false")
        protected boolean skipMavenParsing
        When enabled, skip parsing Maven `pom.xml`s, and any transitive poms, as source files. This can be an efficiency improvement in certain situations.
      • checkstyleConfigFile

        @Nullable
        @Parameter(property="rewrite.checkstyleConfigFile",
                   alias="checkstyleConfigFile")
        protected @Nullable String checkstyleConfigFile
      • sizeThresholdMb

        @Nullable
        @Parameter(property="sizeThresholdMb",
                   defaultValue="10")
        protected @org.openrewrite.internal.lang.Nullable int sizeThresholdMb
      • failOnInvalidActiveRecipes

        @Parameter(property="rewrite.failOnInvalidActiveRecipes",
                   alias="failOnInvalidActiveRecipes",
                   defaultValue="false")
        protected boolean failOnInvalidActiveRecipes
        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 improperly recipe from failing the build. In the future, this default may be changed to "true" to be more restrictive.

    • Constructor Detail

      • ConfigurableRewriteMojo

        public ConfigurableRewriteMojo()
    • Method Detail

      • getExclusions

        protected Set<String> getExclusions()
      • getActiveRecipes

        protected Set<String> getActiveRecipes()
      • getActiveStyles

        protected Set<String> getActiveStyles()
      • getRecipeArtifactCoordinates

        protected Set<String> getRecipeArtifactCoordinates()