title: Custom Annotation processor not being invoked by tomcat
body: <p>Custom Annotation processor is not being invoked by tomcat. Following is the Annotation processor code that I am using :</p>
  
  <pre><code>@SuppressWarnings("restriction")
  @SupportedAnnotationTypes("io.strati.rs.cxf2.bindings.MyAnnotation")
  @SupportedSourceVersion( SourceVersion.RELEASE_8 )
  public class SimpleAnnotationProcessor extends AbstractProcessor {
  
      public static List&lt;String&gt; str = new ArrayList&lt;&gt;();
  
      @Override
      public boolean process(Set&lt;? extends TypeElement&gt; annotations, RoundEnvironment roundEnv) {
  
          System.out.println("Into annotation processor ... 2");
  
          for ( Element element : roundEnv.getElementsAnnotatedWith(MyAnnotation.class)) {
              System.out.println("Method name is:"+element.getSimpleName());
              str.add(element.getSimpleName().toString());
          }   
          return false;
      }
  }
  </code></pre>
  
  <p>This stores the method name of all the methods that have the custom annotation. This is what the annotation class looks like :</p>
  
  <pre><code>@Target({ ElementType.TYPE, ElementType.METHOD })
  @Retention(value = RetentionPolicy.RUNTIME)
  public @interface MyAnnotation {
  
  }
  </code></pre>
  
  <p>I am trying to access the list in a tomcat application as follows :</p>
  
  <pre><code>@GET
  @Path("/dummy")
  @MyAnnotation
  @Produces({APPLICATION_JSON, APPLICATION_XML, TEXT_XML})
  public void print(){
     System.out.println("List is:"+SimpleAnnotationProcessor.str);
  }
  </code></pre>
  
  <p>The list is getting printed as empty even though the method has the annotation.I have specified the annotation in the maven compiler plugin as well as specified it in META-INF/services/javax.annotation.processing.Processor. Can someone tell me what are the possible reasons due to which the annotation processor is not getting invoked ?</p>