Java Mailing List Archive

http://www.gg3721.com/

Home » users.openjpa »

Runtime enhancement during Eclipse debugging

No1UNo

2010-03-05

Replies: Find Java Web Hosting

Author LoginPost Reply

I wanted to share my configuration in case it proves helpful to others.
Perhaps someone has an even better solution. If so, I'd love to hear it.

I am building in Eclipse 3.5 with Maven 2.2. Class enhancement is
automatically invoked from Maven using openjpa-maven-plugin 1.0. This works
great for building installable libraries but doesn't help with debugging.

For debugging, OpenJPA enhancement can be invoked from Eclipse by specifying
'-javaagent:eclipse/openjpa.jar' in the 'Run/Debug Settings' menu. This
must be done for every launch configuration that you wish to debug which can
be an annoying pain. I've simplified slightly by creating a new 'eclipse'
directory off the project which contains a symbolic link to the desired
version of OpenJPA.

NOTE: There is a fragile dependency (version sensitivity). If you upgrade
OpenJPA versions in pom.xml, say from 1.2.1 to 1.2.2, the symbolic link MUST
be updated as well.
--
Sent from the OpenJPA Users mailing list archive at Nabble.com.
©2008 gg3721.com - Jax Systems, LLC, U.S.A.