简体   繁体   English

如何在不安装插件的情况下将 lombok jar 添加到 intellij idea 中?

[英]how can I add lombok jar into intellij idea without installing plugin?

I was working on a spring boot project using eclipse.我正在使用 eclipse 进行 spring 引导项目。 I'm trying to shift to intellij idea but there is lombok jar that our project uses.我正在尝试转向 intellij 想法,但我们的项目使用了 lombok jar。 Due to restrictions from network connection I can't download and install lombok plugin.由于网络连接的限制,我无法下载和安装 lombok 插件。 I can able to connect lombok jar with eclipse.我可以将 lombok jar 与 eclipse 连接起来。 But not sure how to connect the lombok jar with intellij idea.但不确定如何将 lombok jar 与 intellij idea 连接。 I searched online, didn't find solution.我在网上搜索,没有找到解决方案。 Please help me with this one.请帮我解决这个问题。 Thanks in advance:)提前致谢:)

You can visit Github project page of Lombok Plugin for Intellij Idea at here: https://github.com/mplushnikov/lombok-intellij-plugin/ and following the instruction:您可以在此处访问 Intellij Idea 的 Lombok 插件的 Github 项目页面: https://github.com/mplushnikov/lombok-intellij-plugin/并按照说明操作:

Manually: Download the latest release and install it manually using手动:下载最新版本并使用手动安装

Preferences > Plugins > Install plugin from disk...首选项 > 插件 > 从磁盘安装插件...

Restart IDE.重启 IDE。

Required IntelliJ Configuration所需的 IntelliJ 配置

In your project: Click Preferences -> Build, Execution, Deployment -> Compiler, Annotation Processors .在您的项目中: Click Preferences -> Build, Execution, Deployment -> Compiler, Annotation Processors

Click Enable Annotation Processing单击Enable Annotation Processing

Afterwards you might need to do a complete rebuild of your project via Build -> Rebuild Project .之后,您可能需要通过Build -> Rebuild Project对项目进行完全重建。

  • Note: Lombok project dependency in build tool Gradle/Maven...注意:构建工具 Gradle/Maven 中的 Lombok 项目依赖...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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