mavendelpoy项目时报com.sun.tools.javac.code.TypeTags
程序员文章站
2022-04-22 10:34:07
...
原因:是因为lombok的版本太低了,对应的jdk和maven不支持。
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by lombok.javac.apt.LombokProcessor to field com.sun.tools.javac.processing.JavacProcessingEnvironment.discoveredProcs
WARNING: Please consider reporting this to the maintainers of lombok.javac.apt.LombokProcessor
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.265 s
[INFO] Finished at: 2018-02-05T10:16:24+01:00
[INFO] Final Memory: 54M/197M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project manager-api: Fatal error compiling: java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTags -> [Help 1]
解决方法:
可以看下面的官网提供的解决方法。特别简单
https://projectlombok.org/setup/maven
推荐阅读
-
踩坑,vue项目中,main.js引入scss文件时报错
-
javaWeb项目加载HTML文件时报错 [No Find /index.html]
-
Android Studio NDK开发时报Execution failed for task ':xxxx项目:transformNativeLibsWithStripDebugSymbol 错误的解决办法
-
Nginx配置React项目Url后直接输入路由路径时报404问题的解决
-
Web项目打成war包部署到tomcat时报MySQL Access denied for user 'root'@'localhost' (using password: YES)错误解决方案(推)
-
AndroidStudio中导入本地项目时报错问题
-
启动mavn项目时报错
-
用angualr做项目时报错ERRORTypeError:_co.aisnotafunction(…)解决方案
-
idea编译项目时报错:java:-source 1.5 中不支持 diamond 运算符
-
新建的Django项目运行时报错