Class AddAnnotationProcessor

java.lang.Object
org.openrewrite.Recipe
org.openrewrite.ScanningRecipe<AddAnnotationProcessor.Scanned>
org.openrewrite.maven.AddAnnotationProcessor
All Implemented Interfaces:
Cloneable

public class AddAnnotationProcessor extends org.openrewrite.ScanningRecipe<AddAnnotationProcessor.Scanned>
Adds an annotation processor to the maven-compiler-plugin configuration.

The behavior differs based on project structure:

  • Single module: Adds to build/plugins
  • Multi-module with parent in reactor: Adds to parent's build/pluginManagement/plugins
  • Orphan module (no parent in reactor): Adds to build/plugins
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Accumulator to track which POMs need modifications and how.

    Nested classes/interfaces inherited from class org.openrewrite.Recipe

    org.openrewrite.Recipe.Builder, org.openrewrite.Recipe.DelegatingRecipe
  • Field Summary

    Fields inherited from class org.openrewrite.Recipe

    contributors, examples, PANIC
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getInitialValue(org.openrewrite.ExecutionContext ctx)
     
    org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext>
     
    org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext>
     

    Methods inherited from class org.openrewrite.ScanningRecipe

    clone, generate, generate, getAccumulator, getVisitor

    Methods inherited from class org.openrewrite.Recipe

    addDataTable, builder, buildRecipeList, causesAnotherCycle, createRecipeDescriptor, equals, getContributors, getDataTableDescriptors, getDescription, getDescriptor, getDisplayName, getEstimatedEffortPerOccurrence, getExamples, getInstanceName, getInstanceNameSuffix, getJacksonPolymorphicTypeTag, getMaintainers, getName, getRecipeList, getTags, hashCode, maxCycles, noop, onComplete, run, run, run, setContributors, setExamples, validate, validate, validateAll, validateAll, withOptions

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, toString, wait, wait, wait