The bnd-export-maven-plugin might show you what you need to do:
https://github.com/bndtools/bnd/blob/master/maven/bnd-export-maven-plugin/src/main/java/aQute/bnd/maven/export/plugin/ExportMojo.java

Basically you create a runnable jar from a repository and a bndrun file. If
your launcher changes the requirements it should be able to configure a
specially tailored application.

Christian

2017-02-03 20:11 GMT+01:00 <list+org.o...@io7m.com>:

> Hello!
>
> On 2017-02-03T16:18:21 +0100
> Simon Chemouil <ecli...@mithrandir.net> wrote:
>
> > Hi,
> >
> > I'm sure others will give you a more detailed answer, but here's a quick
> > pointer.
> >
> > list+org.o...@io7m.com a écrit le 03/02/2017 à 15:55 :
> > > Is there a library out there that can do this kind of work for me?
> >
> > Yes, you seem to be describing exactly what the Resolver service does;
> > it has an implementation in Felix, and is used externally by
> bnd/bndtools.
>
> I see. I take it that the resolver is usable outside of an OSGi
> context? I mean, as I said, the launcher I have in mind wouldn't be an
> OSGi application: It'd be trying to work out the right set of
> parameters to create a new OSGi context in another process.
>
> > > Am I destined for utter failure using this approach?
> >
> > The current Resolver and approach used by bnd is better, but not perfect
> > (some details in previous mails by Ray & others).
> >
> > Have you given a try to Bndtools, because that's how it helps you create
> > your "executables"?
>
> I'd trust bnd to get things right, given my experiences with it so far.
> I'm currently using bndtools indirectly via the maven-bundle-plugin, as
> I use a Maven build environment. It hadn't occurred to me that bndtools
> had an API, although the existence of the Maven plugin probably should
> have made this obvious... I'll give it a look!
>
> Thanks!
>
> M
>
> _______________________________________________
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>



-- 
-- 
Christian Schneider
http://www.liquid-reality.de
<https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.liquid-reality.de>

Open Source Architect
http://www.talend.com
<https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.talend.com>
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to