Latest version of Eclipse 4.7.1 Lombok plugin does not take effect at compile time

Source: Internet
Author: User
Tags ini tomcat

Yesterday, I accidentally saw a new version of Eclipse, and then click on the next update. After launching eclipse today, the class that used the Lombok plugin annotation in the code has an error, and after using maven–>update, the errors disappear and the compilation is normal.
However, when the Tomcat started debugging the program, it was prompted not to find the Get/set method, by anti-compilation of the class file in Tomcat, found that no Get/set method was generated.
Compiling the program using the MAVEN command separately in the explorer and discovering that it is possible to generate the Get/set method, the problem is identified in the integration of Eclipse and Lombok.
The official recommended way to integrate Lombok in Eclipse is to use the Java-jar lombok.jar command and then select the Eclipse installation path in the pop-up window. The Lombok.jar will then be copied to the Eclipse installation directory and named Lombok.jar, and the following will be appended to the Eclipse.ini file:

-javaagent:lombok.jar

If you search the Eclipse integration Lombok online, you'll find that you'll also need to add the following additional content in Eclipse.ini:

-xbootclasspath/a:lombok.jar

To tell the truth, I do not know that a: what meaning, but has been no problem, so I did not care too much. There was an error at the beginning of the article until the latest version of Eclipse was updated today. I try to take a: get rid of, and finally everything is OK. So the final additions to Eclipse.ini are as follows:

-javaagent:lombok.jar
-xbootclasspath/lombok.jar

After testing, this article does not really solve the problem, the solution is temporarily unknown .....

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.