Hello. The main question is why the persistence.xml is not in the same project as entities are? But if that is something you cannot change I can only tell you (from my limited experience and guessing), that: - enhancer searches for compiled Java classes, which are usually located in /target/ directory - <includes> is strict so if you do not state anything, nothing will be compiled. - since OpenJPA 2.2.0 I noticed that dynamic class loader is active although I have previously enhanced all entities in my model.
So, basically I guess that you cannot enhance classes located inside jars. But, all classes will probably be dynamically enhanced in runtime. If it is possible you should place ALL your entities in separate project, together with persistence.xml. By doing that you would have classic situation from the documentation and less headaches :) -- View this message in context: http://openjpa.208410.n2.nabble.com/Build-time-Enhancement-Maven-dependencies-persistence-xml-tp7581599p7581627.html Sent from the OpenJPA Users mailing list archive at Nabble.com.