'How can I add lombok to wildfly 19 modules and how I can use it?
I have been trying to add the module and it is added, but when I put a "@Getter" or "@Setter" and I try to put "person.getName();" the getters and setter do not appear.
// module.xml
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="org.projectlombok">
<resources>
<resource-root path="lombok-1.18.22.jar"/>
</resources>
</module>
Solution 1:[1]
Project Lombok is a compile time tool and is not needed at runtime. There is nothing you need to install in WildFly. You need to install/use it in your build process too. See the documentation for how to install Lombok in your build process.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | James R. Perkins |
