[英]Which JDK version can I use to support Lombok version 1.16.16?
我在 pom.xml 中有以下依賴項
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
<version>1.16.16</version>
</dependency>
當我運行mvn clean install
,出現以下錯誤:
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 版本或者我應該使用JDK 8 。 我正在運行 JDK 8,但仍然無法修復此錯誤。 有人可以告訴我應該使用的確切JDK 版本來消除這個錯誤嗎?
依賴將幫助您獲得那個罐子。 由於 Lombok 在代碼編譯時工作,因此您需要安裝 Lombok jar
如果您使用 Intellij,則需要安裝插件 Lombok
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.