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
Possible duplicate, see my SO question.
We faced the same problem and the only way we found was to accumulate all entities in one persistence.xml for the final (web-)application.
At the same time we define separate persistence.xml files in our test resources so we can run acceptance tests per module.