avatar

java.lang.ExceptionInInitializerError com.sun.tools.javac.code.TypeTags

异常信息

1
2
3
4
5
6
7
8
9
10
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project helloworld: Fatal error compiling: java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTags -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :helloworld

异常原因

1
JDK使用的版本过高,lombok的依赖版本过低

解决方法

1
降低JDK的使用版本或使用对应JDK版本的lombok依赖
文章作者: 123
文章链接: https://gao5805123.github.io/123/2021/04/27/java.lang.ExceptionInInitializerError%20com.sun.tools.javac.code.TypeTags/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 123
打赏
  • 微信
    微信
  • 支付宝
    支付宝