码迷,mamicode.com
首页 > 其他好文 > 详细

jdk8升级jdk11踩坑记录1

时间:2020-07-29 21:37:09      阅读:98      评论:0      收藏:0      [点我收藏+]

标签:pac   mojo   cut   jdk10   enc   The   解决方法   mave   href   

今天想将项目的jdk版本从8升级到11,maven编译时遇到了下面的问题

错误日志

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project myadmin: 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

解决方法

通过网上查资料,原因是lombok的版本太低造成的,我使用的是1.16.4,不支持jdk10及以上,换成1.18.4就好了。
lombok可以查看lombok各个版本的更新情况。

jdk8升级jdk11踩坑记录1

标签:pac   mojo   cut   jdk10   enc   The   解决方法   mave   href   

原文地址:https://www.cnblogs.com/strongmore/p/13399354.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!