Can I use a Karaf Feature as my Maven dependencies somehow?

2014-07-15 Thread David Bosschaert
Hi all, Just wondering whether this is possible. I'm using a Karaf feature at runtime and want to make sure that at build time I'm picking up all the dependencies exactly like they are in the feature (i.e. same bundles at compile time as at runtime). So I was wondering is there a way to use a Kar

Re: Can I use a Karaf Feature as my Maven dependencies somehow?

2014-07-15 Thread Jean-Baptiste Onofré
Hi David, the features-maven-plugin/karaf-maven-plugin, with the add-features-to-repo resolves the features and populate a system repo with bundles. Regards JB On 07/15/2014 06:46 PM, David Bosschaert wrote: Hi all, Just wondering whether this is possible. I'm using a Karaf feature at runt

Re: Can I use a Karaf Feature as my Maven dependencies somehow?

2014-07-15 Thread David Bosschaert
Thanks JB! This is useful, but it doesn't really put the features in my maven dependency tree, AFAICS. What I'm looking for is a way to simply refer to a Karaf feature instead of specifying entries in my pom. So that I'm sure that what I'm building with maven has the same dependencies as what is p

Re: Can I use a Karaf Feature as my Maven dependencies somehow?

2014-07-15 Thread Jean-Baptiste Onofré
Oh ok. You can create a kar based on the features and reference the kar in . Not sure it will work exactly as you expect. Regards JB On 07/15/2014 07:15 PM, David Bosschaert wrote: Thanks JB! This is useful, but it doesn't really put the features in my maven dependency tree, AFAICS. What I'm

Re: Can I use a Karaf Feature as my Maven dependencies somehow?

2014-07-15 Thread Michael Täschner
Hi David, I don't know if this if helpful for you: In Servicemix (last checked with SMX 4.5) the features are generated inside a separate module based on declarations in dependencyManagement section of the pom. I use this to "import" the pom of this module into my project to gain access to all dep

Re: Can I use a Karaf Feature as my Maven dependencies somehow?

2014-07-15 Thread Charlie Mordant
Hi David, A good thing could be to declare all your feature's dependencies on the feature's pom with an * on them. Then, you can reference that features pom on your business module Example: * In the feature's pom featArtId com.mycom:mydep:${myversion} * com.mycom:mydep * In the feature: mvn