Closed benze closed 12 years ago
Do you have javax.persistence.Entity annotated sources or some Roo specific annotations instead? The configuration looks ok.
I've tried it with both. I've tried with a Roo annotated entity (ie: @RooJpaEntity), a Roo annotated entity but with a @Entity declaration in the class itself (not in the Roo ITD) and neither worked. I've also tried it with a non-Roo Entity class (ie: a regulary entity class with @Entity and no Roo annotations) but the auto generation just does not seem to trigger. Even if I do a clean on the project, when it rebuilds it, the mysema-apt plugin does not seem to launch (no classes are generated).
I am guessing that there is probably a conflict with another dependency/plugin, but I just haven't been able to find it. I've tried taking a functional pom.xml (without Roo) and add in the Roo dependencies (to try to limit the number of changes and help me pinpoint where the conflict occurs), but when I tried that, I ended up with other eclipse/maven errors (ie: Maven Error - cannot read project description, etc), and cannot update the maven configuration. So I have had to create a Roo project from scratch (ie: new roo project wizard) and add the above snippets to the pom. I then copied the entity classes from the non-Roo project to the Roo project and the metadata classes that were generated in the functional project are no longer generated in Eclipse.
Of course, i can always do a maven generate-sources to produce the necessary metadata classes, but it would be nice to have the plugin auto-generate for me as it does in a non-roo project.
Thanks!
Eric
Could you provide a minimal example project that fails? One Entity annotated class is enough.
Sure. But I'm not quite sure how to attach/upload content to this issue. Is there a way I can zip up an example and attach it?
You can e.g. send it to me directly or create a GitHub project for it.
I guess this can be closed now?
I've tried creating a basic ROO project in eclipse and added the required QueryDSL dependencies/plugins to my pom.xml. However, no classes are generated in the target folder by the plugin.
I am using Eclipse 3.7, m2e 1.2, Java 6. I also have the mysema m2e plugin installed from http://ilx.github.com/m2e-querydsl/repository/0.0.5/.
These are my additions to a base roo project pom.xml. QueryDSL version is specified as 2.7.3
There are no pom errors or warnings.
Thanks,
Eric