Using the features-maven-plugin
The features-maven-plugin provides several goals to help you create and validate features XML descriptors as well as leverage your features to create a custom Karaf distribution.
Configure the features-maven-plugin
In order to use the features-maven-plugin, you have to define the plugin in your project's pom.xml file:
<!-- add execution definitions here -->