龙目岛没有产生吸气剂和二传手 [英] Lombok is not generating getter and setter
问题描述
我只是尝试将一个基于maven的项目发送到另一台计算机和HORROR,
红色标记无处不在!!
I just tried to send a maven based project to an other computer and HORROR, red markers everywhere!!
然而 mvn clean install
构建得很好。
很快我注意到Lombok没有为我的类生成getter和setter,但是<$ c Eclipse正确识别$ c> @Getter 和 @Setter
。
Quickly I noticed that Lombok is not generating getter and setter for my classes, however the @Getter
and @Setter
are being correctly recognised by Eclipse.
两台计算机使用相同的Maven版本(3.0.4)但使用不同的JDK(1.6_23和1.6_33)。他们都使用Eclipse Indigo 32位。
Both computers uses the same Maven version (3.0.4) but different JDKs (1.6_23 and 1.6_33). They both use Eclipse Indigo 32 bit.
推荐答案
当从一个全新的eclipse安装开始时,你实际上需要先安装Lombok能够使用它。
When starting with a fresh eclipse installation you in fact need to "install" Lombok before being able to use it.
-
转到Lombok jar的地方,运行它(例如:
java -jar lombok-1.16.10.jar
)。
应出现一个窗口,浏览到eclipse.exe
位置。
点击安装。
启动Eclipse,更新所有项目的项目配置。
Launch Eclipse, update project configuration on all project and voila.
这篇关于龙目岛没有产生吸气剂和二传手的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!