IDEA中有一个maven项目,编译构建的时候没有问题,打包成jar也能正常运行,但是使用IDEA的main方法运行时一直提示set方法找不到。看了一下提示错误信息是:
You aren‘t using a compiler supported by lombok, so lombok will not work and has been disabled.
搜了一下,还是IDEA配置的问题,在项目的 File | Settings | Build, Execution, Deployment | Compiler 中,修改「User-local build process VM options」的值为「-Djps.track.ap.dependencies=false」即可。