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
Can't compile with lombok #5942
Comments
JHipster doesn't offically support Lombok. Please use stackoverflow to ask for help. |
Yes and I'll need to update my list of days lost because of Lombok... Why the hell do people use it? |
possibly Lombok is an example for anti-patterns, looks like a good idea, while it's actually not 😄 |
We use Lombok to avoid writing annoying setter/getter and it inject builder pattern too :) |
Because we do so much more than Spring Initializer... |
Ok I see, I'm one of this "lazy" guys :) |
"smart", I said "smart" :-) |
I explain that, as Julien did this so many times. We have some policies. In general, they are talking about providing a minimum of fancy stuff, and try to be maximal conform with default configuration. Sure, there are tons of different solutions in every single stack JHipster provides, as Lombok for POJOs, Mybatis as Hibernate replacement, minimum 1337 different (distributed) caching solutions, angular plugins etc... That's why we focus on the necessary features, which helps a lot of people. Especially that I don't get why people do hype Lombok so hard. The most of them are using IntelliJ or Eclipse, where you just do a fast combo and get your getter/setters |
Ok I get it. I have to stick to JHipster policies because it's a great generator which do cool things. Thanks guys. |
@freemanpolys |
Anyway @andidev, which configs do you do ? |
Not sure, but we added the Afterburner module for Jackson recently : that's the kind of thing that won't work well with Lombok |
I think this is a lombok issue, try downgrading lombok. see |
The maven project Jhipster generated uses a annotationProcessorPaths in the maven compile plugin, that's why it cannot look up the latest lombok unless we specify lombok as one of the annotation processor. Working code is as followed.
|
version numbers? |
Please don't comment on an old issue. If you have a question please use Stack Overflow, and tag the question with jhipster. This helps the project to keep the issue tracker clean. Also, Stack Overflow will give your question a larger audience:
|
Overview of the issue
./mvnw and mvn clean install fail when adding lombok dependency but run successfully when launched from Intellij IDE
Find the error below :
Motivation for or Use Case
Use lombok annotations for my custom POJOs setter/getter and builder.
Maven build failed.
Reproduce the error
add lombok dependency in the pom.xml
create new java class as below
Run ./mvnw or maven clean install
JHipster Version(s)
generator-jhipster@4.4.1
JHipster configuration
The text was updated successfully, but these errors were encountered: