简体   繁体   中英

IntelliJ Lombok - src/integration-test classes don't see generated lombok code

I am using IntelliJ IDEA 2016.3 + lombok plugin with the following structure:

在此输入图像描述

Edit: this is the Module Content Root configuration:

在此输入图像描述

Everything works as expected in src/main/java and src/test/java , but classes in src/integration-test and src/end-to-end-test don't see the generated lombok code (so no autocomplete).

I can still run the tests without any issue though.

Does anyone have any idea what I should do to benefit from auto-complete from these other test source folders?

Thanks!

You need to enable Annotation processing for your modules in IntelliJ. If you have enabled it already make sure integration-test and end-to-end-test are listed under Default.

Go to settings (Ctrl + Alt + S) ->Build Execution Deployment -->Compiler --->Annotation processors

Double check that you have enabled Lombok itself in project properties as far as processing annotations on that. Everything is in Project preferences.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM