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
You can do use this concept: https://wiki.eclipse.org/Packaging_and_Deploying_EclipseLink_JPA_Applications_(ELUG)
org.eclipse.persistence.jpa.PersistenceProvider mamcaPU /META-INF/common-layer-mappings.xml
common-layer-mappings.xml