Thanks for your reply. I suppose I should explain why my manager had me look into this. We wanted to know if we could have a dao project with generic JPA entity classes. Then if we were going to build a web project that was going to specifically use OpenJPA as the provider, could pull in the dao project as a dependency in the Maven build and enhance the entity objects at that time.
I had the impression that the persistence.xml was used at build time from this statement in the 2.2 pdf documentation. (Under 5.2.1. Enhancing at Build Time) "If you do not supply any arguments to the enhancer, it will run on the classes in your persistent class list (see Section 5.1, “Persistent Class List ” [260]). You must, however, supply the classpath you wish the enhancer to run with. This classpath must include, at minimum, the openjpa jar(s), persistence.xml and the target classes. " I thought that list included any jars defined in persistence.xml. Thanks again. Tony -- View this message in context: http://openjpa.208410.n2.nabble.com/Build-time-Enhancement-Maven-dependencies-persistence-xml-tp7581599p7581637.html Sent from the OpenJPA Users mailing list archive at Nabble.com.