Custom command creation
The set of commands that come prebuilt into Apache Karaf are meant for the basic administration and monitoring of the runtime container (see Appendix, Apache Karaf Commands, for more in-depth command coverage). Some users, however, need to embed additional commands to augment their own applications. Apache Karaf provides a convenient methodology for expanding its collection of commands using Apache Maven archetypes. An archetype can be thought of as a maven-based project skeleton generator, in this case, all the setup is created to allow you to write your own Karaf command.
When you invoke Apache Maven with the
Karaf-command-archetype, a maven-based project will be generated for building a custom Karaf ...