You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Sigmund Lee <wu...@gmail.com> on 2016/07/01 05:59:48 UTC

Questions about features-generate-descriptor of karaf-maven-plugin

Hi all,

I'm looking for a method that generate feature.xml automatically, and
include maven dependencies as bundle of generated feature. Looks like
karaf-maven-plugin is the right way to go. But I have some questions when
using it.


1. If packaging of my pom.xml is jar, then I can successfully generate
feature.xml through binding goal features-generate-descriptor to phase
generate-resources.
But if I change packing of pom to war, mvn install may still work, but the
generated feature.xml is empty! why?

2. I noticed that all maven dependencies that groupId belong to org.osgi,
org.ops4j.pax.cdi, javax.enterprise was not include as bundle within
generated feature.xml(and scope of these maven dependencies is not
provided), why?

3. Is there any other approach can help me to generate feature.xml based on
dependencies of pom.xml, except using features-generate-descriptor of
karaf-maven-plugin?

Thanks in advances.