| Summary: | [mojo] openjpa-maven-plugin:enhance support | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Jerry Carter <jerry> | ||||
| Component: | m2e | Assignee: | Project Inbox <m2e.core-inbox> | ||||
| Status: | CLOSED NOT_ECLIPSE | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | hwellmann.de, igor | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Jerry Carter
Please attach complete standalone example that demonstrates openjpa-maven-plugin in action and steps see it actually works. Also, do you know if there is existing eclipse tooling that supports bytecode modifications required by OpenJPA? It may make more sense to integrate m2e with that tooling (assuming it exists), than trying teach openjpa-maven-plugin and JDT builder play nicely together. This worked fine in version 0.9.8.20090504141. (In reply to comment #2) > This worked fine in version 0.9.8.20090504141. This does not give us enough information to understand how to support openjpa maven plugin in 0.13. Please provide standalone sample project, explain what is expected to happen with this project inside eclipse workspace and how we can verify this is actually happening (or not). Created attachment 198331 [details] OpenJPA Sample project Attached is a small openjpa sample project. To confirm the project is working correctly just run mvn package, the look at the Book.class file. It should contain Strings like "org/apache/openjpa/enhance/PersistenceCapable", if not it was not enhanced. (Bytecode Enhancing is adding metadata to a POJO, like dirty handling, etc, so the persistence layer does know what did happen to it) The expected behaviour would be that if the user does edit the Book.java entity and saves it, the class file should be automaticly enhanced. Please note, that it is possible to specify inclusions and exclusion of files to specify when the plugin is triggered. The complete documentation of the plugin can be found at http://mojo.codehaus.org/openjpa-maven-plugin/index.html Please also note, the plugin is currently reaming itself, from org.codehaus.mojo to org.apache.openjpa, but the later did not release any non-snapshot version, so the attached example is for the stable org.codehaus version, which most people would proably use. 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 An m2e extension for OpenJPA is available from the update site https://github.com/hwellmann/m2eclipse-extras/raw/master/p2/ See https://github.com/hwellmann/m2eclipse-extras/wiki for more details. closing as fixed as per last comment actually, NOT_ECLIPSE is more appropriate |