Re: Creating features.xml files

2016-09-20 Thread Benson Margulies
On Tue, Sep 20, 2016 at 8:19 AM,   wrote:
>
>> On 20 September 2016 at 12:52 Benson Margulies  wrote:
>>
>>
>> I build all my features with the karaf-maven-plugin.
>>
>
> I don't use Maven, I use eclipse and bndtools, hence gradle as my build
> environment. Since I didn't have to do anything at all to get the gradle 
> command
> line build set up, it was just generated for me, I'm reluctant to start 
> manually
> setting up a maven build environment. Ideally I want to just generate a 
> feature
> xml file out of the bndtools environment somehow.

In the simple case, a feature is just a collection of the maven
repository coordinates of a set of bundles that want to travel around
together. The Maven tooling creates these by waking the Maven
dependency graph. It doesn't always work perfectly, since many OSGi
bundles in Maven Central have unhelpful dependencies declared.  I
don't have any experience in gradle plugin creation, so I can't advise
as to the difficulty level here of stirring up something.


Re: Creating features.xml files

2016-09-20 Thread tom

> On 20 September 2016 at 12:52 Benson Margulies  wrote:
> 
> 
> I build all my features with the karaf-maven-plugin.
> 

I don't use Maven, I use eclipse and bndtools, hence gradle as my build
environment. Since I didn't have to do anything at all to get the gradle command
line build set up, it was just generated for me, I'm reluctant to start manually
setting up a maven build environment. Ideally I want to just generate a feature
xml file out of the bndtools environment somehow.


Re: Creating features.xml files

2016-09-20 Thread Benson Margulies
I build all my features with the karaf-maven-plugin.

On Sep 20, 2016 3:12 AM,  wrote:

> Up until now I've been developing code using bndtools in eclipse, writing
> bndrun
> files, resolving them, and running my application that way. The resolution
> step
> resolves all the requirements from the set of OBR repositories. All very
> easy
> (well, it is now, once I got over the learning curve :-) )
>
> I'm now trying to deploy those same applications into karaf, and so
> wanting to
> write feature repository XML files the the same thing. So naively I seem
> to want
> to create a feature XML file that is the same as my resolved bndrun file.
> Is
> there an easy way to do this? Is there an easy way to write feature
> repository
> files, or do I have to maintain those separately? It also feels that the
> way I
> have to write the files depends on how I'm deploying. So if I want to
> deploy
> from a maven repository, my bundle references need to be in one form, but
> If I'm
> deploying directly from disk, my bundle references have to be in another
> form.
>
> Is there an easy way to manage the feature xml files?
>
> Thanks.
>