The Karaf Maven tooling has improved in recent versions so that building custom Karaf tarballs is much easier. We should migrate our hand-built assemblies to use the karaf-maven-plugin instead to make them more uniform, easier to maintain, and easier to reuse.
This would have several benefits:
- Easier to create new Karaf containers for specific uses.
- Possible to use the container as the base for Pax Exam. Right now we always use the stock Karaf tarballs as the Pax Exam containers. The only time that our actual customized containers are under test is during smoke tests.
Note that the (simpler) Minion container already uses karaf-maven-plugin so it can be used as a model for what to do for the OpenNMS containers.