Hi Rick,
I think there's some misunderstanding... Your links seem to refer to the
OpenJPA Eclipse plugin
http://openjpa.apache.org/openjpaeclipseinstallation.html
which I've never used, and I don't think I could be of much help with that.
My m2e Extension for OpenJPA depends on Maven, the openjpa-maven-plugin,
and the Maven Eclipse integration m2e 1.0.
This assumes you build your projects with Maven and you have properly
configured the openjpa-maven-plugin for build-time enhancement in your POM.
Now when importing your Maven project into Eclipse, without the m2e
Extension, Eclipse (not Maven) will recompile an entity class whenever
you change and save the source file in the IDE, and this class will be
unenhanced by default.
The m2e extension intercepts build events coming from Eclipse and then
makes m2e invoke the appropriate Maven goal (openjpa:enhance in this
case) to postprocess the classes compiled by Eclipse.
I'm not an expert on m2e, so this is currently nothing but a "works for
me" solution.
Any feedback is welcome, to help improve this extension, should there be
any problems in other environments.
Best regards,
Harald
Am 16.11.2011 16:24, schrieb Rick Curtis:
Harold -
Your setup is perfectly valid and if it works for you, great! OpenJPA uses
build time enhancement as we have lots of automated builds that don't see
the light of Eclipse and as such what we have works good enough...
Now if you're looking to help contribute to problems with the enhancer
plugin, we'd be more than willing to have some help! There are a number of
JIRAs that have been opened for problems with the existing implementation.
I'll paste a few links that contain interesting information about the
development / problems of the eclipse plugin.
Thanks,
Rick