Hi Xavier, You can use the maven resource plugin filtering feature in combination with build-helper-maven plugin in order to make your custom feature. Here's a sample of a manual-made feature: https://github.com/OsgiliathEnterprise/net.osgiliath.parent/tree/master/net.osgiliath.framework/net.osgiliath.features.karaf-features/net.osgiliath.features.karaf-features-derby
Regards, 2014-05-27 8:59 GMT+02:00 xav <[email protected]>: > Hi all, > > Question about this plugin. > > in my case it's work very well, just, I would like add a "feature cap", > i.e. > if I have the following dependencies > <dependency> > <groupId>${project.groupId}</groupId> > <artifactId>my-api</artifactId> > <version>${project.version}</version> > </dependency> > <dependency> > <groupId>${project.groupId}</groupId> > <artifactId>my-manager</artifactId> > <version>${project.version}</version> > </dependency> > <dependency> > <groupId>${project.groupId}</groupId> > <artifactId>my-impl</artifactId> > <version>${project.version}</version> > </dependency> > > in the feature.xml generated, I have > <features> > <feature name='my-api' version='0.1.0' > > <bundle>mvn:com.eaton.pqsoft/my-api/0.1.0</bundle> > </feature> > <feature name='my-manager' version='0.1.0' > > <feature version='0.1.0'>my-api</feature> > <bundle>mvn:com.eaton.pqsoft/my-manager/0.1.0</bundle> > </feature> > <feature name='my-impl' version='0.1.0' > > <bundle>mvn:commons-lang/commons-lang/2.6</bundle> > <feature version='0.1.0'>my-api</feature> > <bundle>mvn:commons-io/commons-io/2.0.1</bundle> > <bundle>mvn:commons-codec/commons-codec/1.4</bundle> > <bundle>mvn:com.eaton.pqsoft/my-impl/0.1.0</bundle> > </feature> > </features> > > Ok, but if I want a feature named "my" where inside I have this: > <feature name='my' version='0.1.0' > > <feature version='0.1.0'>my-manager</feature> > <feature version='0.1.0'>my-impl</feature> > </feature> > In the plugin's documentation, I don't find, any information to add > manually, or automatically somethings like this. > Is there a solution to my problem? > > Thanks > > Regards > > > > > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/karaf-features-maven-plugin-tp4033284.html > Sent from the Karaf - User mailing list archive at Nabble.com. > -- Charlie Mordant Full OSGI/EE stack made with Karaf: https://github.com/OsgiliathEnterprise/net.osgiliath.parent
