Community
Participate
Working Groups
Hi, we are using querydsl for creating JPA Entity Metadata, unfortunately the provided maven-apt-plugin does not work with m2eclipse 1.0.0 anymore. With version 0.12 it did work fine, there is a folder target/generated-sources/apt as an additional classpath entry in 0.12. For a small example project see http://source.mysema.com/static/querydsl/2.1.1/reference/html/ch02s02.html#d0e306
Unless you plan to work on m2e integration yourself, please provide complete standalone sample project and detailed description of desired behaviour inside Eclipse workspace, i.e. what additional classpath entries are expected, what classes and/or resources should be generated and so on.
Created attachment 198335 [details] small querydsl test project Attached is a small QueryDSL JPA project. There is an entiy Book.java where the QBook meta-Class should be generated (in the same java package, but in the target/generated-sources/... folder). The output directory of the plugin (in the example it is generated-sources/apt, but it is configurable !) should be included in the eclipse classpath. Otherwise the "service" class can't compile. To see if everything is working i did include a de.glauche.BookService Java class, which does utilize the generated meta-class. The expected behaviour would be that eclipse does add the generated-sources path to the classpath folders. It would be nice if the sources would be re-generated if the matching entites change, but a manual generate-sources task is sufficient.
m2e core development team is looking for help implementing support for various "not covered" maven plugins. If you are interested, wiki [1] provides pointers where to start and we'll be happy to answer questions on m2e-dev mailing list. To avoid duplicate effort, please assign this bugzilla item to yourself if you already work on corresponding m2e extension. [1] m2e extension development is documented in http://wiki.eclipse.org/M2E_Extension_Development
*** Bug 351168 has been marked as a duplicate of this bug. ***
I've startet to write a small configurator for this plugin. Right now the basic function is working, I'm still having a bit trouble getting incremental building to work (bit missing the whole picture here, is there more documentation for it somewhere ?) After a bit cleanup i hope i can release it soon.
Is this just a duplicate of bug 350923?
(In reply to comment #6) > Is this just a duplicate of bug 350923? No, different groupId and different artifactId. Not the same plugin.
I've written a configurer. It's available at https://github.com/ilx/m2e-querydsl Please take a look, test, contribute. I'm not sure I've covered all annotation processors or configuration options.
closing as per last comment
Moved to https://github.com/eclipse-m2e/m2e-core/issues/