title: Maven clean install: cannot find symbol
body: <p>My Maven clean install is failing. Below is the error message. </p>
  
  <pre><code>[ERROR] Failed to execute goal
  org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
  (default-compile) on project MyProject: Compilation failure:
  Compilation failure:
  
  [ERROR] C:\..\MyClass.java:[13,2] cannot find symbol
  
  [ERROR] symbol  : class MyAnnotation
  
  [ERROR] location: class mypackage.MyClass
  </code></pre>
  
  <p><strong>MyClass.java</strong></p>
  
  <pre><code>public class MyClass{
  
      @MyAnnotation
      public static class MyAnnotation{
          //some static nested class code here...
      }
  </code></pre>
  
  <p><strong>MyAnnotation.java</strong></p>
  
  <pre><code>@Retention (RetentionPolicy.RUNTIME)
  public @interface MyAnnotation{
  } 
  </code></pre>
  
  <p>I have no clue why this would present problems, can anyone please give me some ideas?</p>