Java – Maven plug-in automatically generates setters / getters?
Is there a maven plug-in that can automatically generate setters and getters using the corresponding Javadoc?
I know eclipse / NetBeans will do this when you tell it; However, it would be nice for the source to just contain the skeleton and have Maven or other tools generate duplicates
I want to modify the source code so that I can compile and use the source jar. Jar while debugging
Thank you, Walter
Solution
This is not necessarily what you want Maven to do for you It will be more difficult to use the code in the IDE because the IDE does not necessarily know the generated code unless it has a plug-in that understands Lombok symbols IntelliJ has such plugins available
In other words, the purpose of project Lombok is to do this correctly by using @ data annotation It looks good, but I haven't tried it yet It supports many environments and ides through plug-ins, including maven, eclipse, IntelliJ and NetBeans At present, NetBeans has some precautions. Please refer to the project documentation