我的 Maven 全新安装失败。下面是错误信息。
[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
MyClass.java
public class MyClass{
@MyAnnotation
public static class MyAnnotation{
//some static nested class code here...
}
MyAnnotation.java
@Retention (RetentionPolicy.RUNTIME)
public @interface MyAnnotation{
}
我不知道为什么这会出现问题,任何人都可以给我一些想法吗?