I am using guice persist which relies on me listing my persistence units in a persistence.xml
. As far as I can tell, there is no way to pass PersistenceUnitInfo
at runtime to guice-persist.
However, where I have multiple databases, I have the models in separate projects and therefore want separate persistence.xml
files.
Is there a way I can get maven to join these for me at compile time to avoid me having one file with all my persistence units in?