Search code examples
springmacosintellij-idealombokuberjar

Intellij + lombok + fat jar => Lombok installer


I have a spring boot 2 project, using Lombok (1.18.6) under Intellij IDEA Ultimate 2018.3. Everything works fine within IntelliJ running as an application. But when I try to build a fat jar as an artifact and launch it in the terminal (OSX) with : java -jar my project.jar, I get a Lombok Installer window !!! Any idea ?


Solution

  • Lombok is an annotation processor basically, so there is no point to make the dependency on lombok available in runtime. Read, it should not be a part of spring boot application.

    Take a look at BOOT-INF/lib - if you see lombok, change the build script . For example for maven, make the dependency of scope "provided"