Well, any of the following solutions would work:
- Run embedded stuff in a fully modularized environment
- Put everything on the app classpath (and hope there's no duplicate dependencies...)
- Use a hybrid solution with a customized module repos where no packages are duplicated between modules and the app class path
Just using the app classpath is the simplest, assuming you don't hit any duplicate issues.