use maven resources to place test-persistence.xml from test/resources to META-INF/test folder in output .jar So in Integration Test in core module we could remove actual persistence.xml with test-persistence.xml using ShrinkWrap resolver