You should probably vote for https://bugs.eclipse.org/bugs/show_bug.cgi?id=315949 ( Support Static Weaving through Dali Eclipse Plug-in) That'd probably make it easier to integrate via a m2e connector.
2011/7/27 Igor Fedorenko <i...@ifedorenko.com> > Most likely you won't be able to make this work reliably with m2eclipse > 0.12.x and earlier versions (see [1] for some details) and even with m2e > 1.0 full-blown EclipseLink/m2e integration will be necessary. Changing > .class files after they were generated by JDT looks like a recipe for > endless builds, not to mention that running ant on each file save most > likely will be too slow. > > [1] > http://wiki.eclipse.org/M2E_**plugin_execution_not_covered<http://wiki.eclipse.org/M2E_plugin_execution_not_covered> > > -- > Regards, > Igor > > > On 11-07-27 9:20 PM, Rafael Vanderlei wrote: > >> Hi all. >> >> I have a project that uses EclipseLink as JPA provider. For EclipseLink >> to work properly, its required that developers run a static weaving over >> the managed entities classes bytecode. >> >> I configured my project to do that with the maven-ant-plugin attached to >> process-classes phase. >> >> From Maven CLI, running mvn package always happens to work, but in >> Eclipse there are few times when I publish the project to JBoss it >> doesn´t work (I notice that by openning any entity .class inside the >> package and look it doesnt have any EclipseLink interfaces which are >> added by the static weaving). A full clean/build is needed for that to >> work again, but I believe it was not supposed to be necessary. >> >> So, in general terms, I have a plugin attached to maven's >> process-classes phase that sometimes doesn't get run. >> >> Would it be a bug or am I missing something? >> >> PS.: Im using Helios + m2e 0.12.1 + m2e-wtp 0.11.1 (but maybe its >> happening on newer versions as there is no fix fot this mentioned on >> newer versions release notes) >> >> PS.: Usually, I attach sample project to help reproduce the error, but I >> didnt do it this time because I didnt find a deterministic way to >> reproduce it. >> >> >> ______________________________**_________________ > m2e-users mailing list > m2e-users@eclipse.org > https://dev.eclipse.org/**mailman/listinfo/m2e-users<https://dev.eclipse.org/mailman/listinfo/m2e-users> > -- "Have you tried turning it off and on again" - The IT Crowd
_______________________________________________ m2e-users mailing list m2e-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/m2e-users