IntelliJ에서 lombok 플러그인을 설치해주고, Annotaion Compile processing을 체크해주어도 에러가 난다. 특히 2019.2.1 이후 버전대면 무조건 그렇다.
위의 처리를 다 해준 다음 아래의 처리도 해주어야 한다.
For IDEA 2019.2.1, depending on how the project is configured, installing the Project Lombok plugin may not be sufficient. Here is another way to use Project Lombok with IntelliJ IDEA:
- Visit https://projectlombok.org/download
- Download the JAR file into the project lib directory (e.g.,
$HOME/dev/java/project/libs
). - Start the IDE.
- Click File 🠖 Settings.
- Expand Build, Execution, Deployment 🠖 Compiler 🠖 Annotation Processors.
- Ensure Enable annotation processing is checked.
- Ensure Store generates sources relative to is selected based on the project's module settings (if Module output directory doesn't work, come back and try the other setting).
- Click Apply.
- Click Plugins.
- Click Marketplace.
- Set search field to:
lombok
- Install Lombok.
- Click OK.
- Restart the IDE if prompted.
- Click File 🠖 Project Settings.
- Select Libraries.
- Click the + symbol to add a new project library (or press Alt+Insert).
- Select Java.
- Set the path to:
$HOME/dev/java/project/libs/lombok.jar
- Click OK.
- Select the modules to apply.
- Click OK.
- Optionally, rename
lombok
toProject Lombok 1.18.8
. - Click OK.
'날리지 > 언어' 카테고리의 다른 글
Pycharm에서 Unresolved Reference 에러 문제 해결 (0) | 2020.02.18 |
---|---|
eclipse 에서 gradle svn checkout 하는 방법 (0) | 2020.02.07 |
SpringBoot에서 전자정부프레임워크 사용 가능 여부 (0) | 2019.12.19 |
CENTOS7 방화벽 (0) | 2019.11.04 |
[maven] 커스텀 라이브러리들을 메이븐에 추가하기 (0) | 2019.10.23 |