lombok没有产生吸气剂和吸气剂 [英] lombok not generating getter and setter

查看:161
本文介绍了lombok没有产生吸气剂和吸气剂的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚尝试将一个基于maven的项目发送到另一台电脑和HORROR,
红色标记无处不在!
但是,mvn clean install正在构建的很好。



我注意到,lombok并没有为我的类生成getter和setter,但是@Getter和@Setter被eclipse正确识别。



这两台计算机都使用相同的maven(3.0.4)但是不同的jdk(1.6_23和1.6_33),他们都使用eclipse靛蓝32bits。



可能是什么问题?
谢谢

解决方案

嗯,当开始一个新的eclipse安装你实际上需要安装lombok之前可以使用它。



去哪里你的lombok jar是运行它(例如:$ code> java -jar lombok-1.16.10.jar )。
应该出现一个窗口,浏览到您的 eclipse.exe 位置。



点击安装。 / p>

启动eclipse,更新所有项目和瞧瞧的项目配置。


I just tried to send a maven based project to an other computer and HORROR, red markers everywhere!! However "mvn clean install" is building just fine.

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.

both computers uses the same maven (3.0.4) but different jdk (1.6_23 and 1.6_33), they both uses eclipse indigo 32bits.

What could be the problem? thanks

解决方案

Well, when starting with a fresh eclipse installation you in fact need to "install" lombok before being able to use it.

Go where you lombok jar is, run it (Example: java -jar lombok-1.16.10.jar). A window should appear, browse to your eclipse.exe location.

Click on install.

Launch eclipse, update project configuration on all project and voila.

这篇关于lombok没有产生吸气剂和吸气剂的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆