-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lombok #125
Comments
The only way to get it work is to build separate jars : |
@slemesle, it's clear the issue with Lombok is just that at the time that Selma checks for a certain getter or setter method, Lombok processor didn't run, leading to Selma to fail. However, I think that if we would have a way to tell Selma, hey, don't worry if you don't find getters or setters, they will be available in runtime, it could continue generating mappers and complete successfully. In addition, when Maven (or whatever you use) completes, all the generated code should compile seamlessly too. I'm sorry if I'm oversimplifying or missing anything important, but would that be possible? Would it possible adding a parameter to Solving this issue would be really appreciated, and would make Selma way more flexible. Thank you! |
Yep, I'm facing this issue and will probably have to not use Selma because of it. |
Lombok is a compile time annotation pre-processor, so is selma. |
The only solution as of today, is to have your beans in a separate module than your mapper is. This way maven (or whatever you have) will compile your beans first and then your mapper, making the whole process possible. |
I was able to generate the Lombok + Selma classes with: pom.xml file:
then : mvn generate-sources |
Hi @anaice, thanks for this update. |
I was able to run a spring-boot project using a slightly modified maven 'build' tag:
Observe that I commented out the in the maven-processor-plugin. I can run a spring-boot project with both lombok and selma with mvn -U clean spring-boot:run. Just add this build section to your projects pom.xml. The 'pluginManagement' section is for solving the Eclipse “Plugin execution not covered by lifecycle configuration”. |
I am able to solve this issue by proper selection of lombok and selma version. Note that Lombok 1.16.14 or newer is required. |
@ajay-kmr This trick was working for me until now. Don't know what's happening, perhaps the upgrade of Gradle. |
Worked for me too !! |
How can I use Selma together with Lombok? It seems that Selma does not see the getters/setters generated by Lombok.
The text was updated successfully, but these errors were encountered: