Lombok problems with Eclipse Oxygen

后端 未结 20 952
南方客
南方客 2020-12-02 16:40

I upgraded recently to the new Eclipse version (Oxygen). I downloaded the lombok.jar from the website and installed it. This is how the eclipse.ini looks like a

20条回答
  •  离开以前
    2020-12-02 17:14

    For MacBook Pro users (e.g. running macOs Sierra v10.12.6), in order to install lombok on Eclipse Oxygen (4.7.0) or Photon (4.8.0), using Java 1.8 (1.8.0_144), just do the following actions:

    1. Download lombok from the site Project Lombok;
    2. Close your Eclipse IDE if it is open;
    3. Trigger lombok installation either by following the official installation steps or by executing the command: java -jar lombok.jar;
    4. If the lombok installer doesn't find your Eclipse IDE, you will be requested to enter the path to your Eclipse. You should input the path to your eclipse.ini file. In my case was /tools/ide/eclipse/jee-oxygen/Eclipse.app/Contents/Eclipse/eclipse.ini.
    5. Quit the installer and open Eclipse.
    6. On the menu bar, go to Eclipse > About Eclipse and validate that lombok is installed:

      Lombok v1.16.18 "Dancing Elephant" is installed. https://projectlombok.org/
      

      Be sure to scroll the text window down since the installed Lombok version appears in the text above the row of icons.

    7. Finally, add lombok to your project's build path according to the building tool you're using. For Maven, for instance, use the following dependency:

      
          org.projectlombok
          lombok
          1.16.18
          provided
      
      

提交回复
热议问题