how to configure lombok in eclipse luna

后端 未结 13 894
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 09:45

I configure lombok in eclipse Luna with Maven. Annotation is added properly, but no getter and setter are generated.

eclipse.ini

`-vm E:\\Program Fil         


        
13条回答
  •  攒了一身酷
    2020-11-30 10:00

    For Integrattion with ECLIPSE LUNA in Windows 7 please foollow the below steps:

    • Download the jar -> lombok-1.14.6.jar.
    • Using command prompt go to java installed directory and type

      java -jar ${your_jar_path}\lombok-1.14.6.jar.
      

      Here ${your_jar_path} is your lombok-1.14.6.jar jar store directory.

    • After this it will prompt for Eclipse already installed in your system and you need to select where you want to integrate.
    • After this you need to open eclipse.ini file and make entry below

      -vmargs
      

      as

      -Xbootclasspath/a:lombok.jar
      -javaagent:lombok.jar
      
    • Start your eclipse now and create a Maven project and make entry in pom.xml as mentioned below:

      
          org.projectlombok
          lombok
          1.14.6
          provided
      
      

    After this your are ready to write your code and check it. Without @DATA annotation it looks like: enter image description here With @DATA annotation it looks like: enter image description here

    An example i ran the command

    C:\Program Files\Java\jdk1.7.0_75>java -jar C:\Users\Shareef-VM.m2\repository\o rg\projectlombok\lombok\1.14.8\lombok-1.14.8.jar

提交回复
热议问题