I have a maven-built CDI-based Java SE app, which has a core module, and other modules. Core has the persistence.xml and some entities. Modules hav
persistence.xml
for JPA 2+ this does the trick
scan all jars in war for annotated @Entity classes