-
-
Notifications
You must be signed in to change notification settings - Fork 915
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
1.2.0.Beta2 doesn't generate sources in Eclipse #1207
Comments
Did it work with previous versions? Do you use some build tool? If yes how does the setup look like in it, does it build OK with it? Does it work if you don't have lombok? |
1)I don't know - I started project with this version
3)I must use Lombok |
Well, after importing the projects in Eclipse (I ran
Is |
I also tried the example (without eclipse) and the mappers were also generated but in @agudian Lombok must have run, because otherwise we cannot generate the Mappers. Both the |
I am going to close this one as the problem is not related to MapStruct and also it works for me without Eclipse and for @agudian in Eclipse. |
See: #1159
Now all classes will be generated properly. |
@filiphr : should we document these steps somewhere? |
@sjaakd, as far as I understood you have to add the |
@eximius313 yes, you're right. But this step is not enough, it's only the first step, you need 7 additional ones. That's what I was trying to say. |
@sjaakd I've created mapstruct/mapstruct.org#65 for our website. We can add this under the eclipse setup or maybe as an FAQ, I don't know what is the best. |
I would propose to check my solution once again on a clean Eclipse instance, just to make sure that all steps are really valid (I checked them several times, but hope that they work not only for me). |
This really looks like a coincidence and not like something that will continue to work within one project. Eg the removing and adding of the lombok agent and the triggering of the mapper generation in between restarts doesn’t sound like something that has an actual effect on persisted configuration values in Eclipse. Hence I wouldn’t add it to the docs... I think it’s more something that the lombok guys might need to look into, right? |
@agudian you might be right. To be honest I didn't read all the steps completely (and I don't know Eclipse a lot). One thing I know is that there are issues with the lombok agent (multiple people have been complaining that it does not work with MapStruct and the |
I'm using
mapstruct-jdk8
version1.2.0.Beta2
(Beta2 because I use Lombok as well) together withHibernate Static Metamodel Generator
.My configuration in Eclipse is as following:
Files generated by
Hibernate Static Metamodel Generator
are placed inside.apt_generated
folder while Mapstruct generated files are missingCould you please fix that?
The text was updated successfully, but these errors were encountered: