It would be great to work together on this.
I just talked to Peter Kriens to get some hints about using bndrun
files. Simply reading the file is probably not a good idea as even the
resolved bundles do not directly give us the jar locations and we do not
want to reimplement their indexes.
He recommended to create a run and work with the bundle objects it
provides. I have done a similar thing in a maven plugin to resolve and
export using bndrun files:
https://github.com/bndtools/bnd/blob/master/maven/bnd-export-maven-plugin/src/main/java/aQute/bnd/maven/export/plugin/ExportMojo.java
So I think it should be possible to get all the informations we need
from there.
For the other way round I am not sure if it makes much sense. The main
advantage of bndrun files for me is that they can be edited with the
bndtools editor. The editor has a nice UI for accessing the backing
index to simply drag bundles over. The resolve button also provides some
nice feedback if something is missing.
In pax exam configs the main issue for me is to specify the bundles to
install. You first have to add them to the pom and then a second time in
the pax exam config. The bndtools UI for bndrun files together with the
resolver should eliminate most of this manual work.
In the current version of bndtools it is already possible to work with
indexes created by maven.
See
https://github.com/cschneider/osgi-chat/blob/master/packaging/service/service.bndrun
The upcoming version will even allow to specify a pom directly as an index.
In parallel I am working on providing such pom based indexes for apache
projects. This should make it a lot easier to create OSGi assemblies in
the future.
For example Aries RSA and CXF DOSGi already have these repository poms
and so they are really easy to add to your index pom. See
https://github.com/cschneider/osgi-chat/blob/master/packaging/index/pom.xml#L111-L122
Christian
On 19.08.2016 14:46, Toni Menzel wrote:
Totally agree! That's on my todo and wish list for a long time. I am
off until next week but would like to work on a joint effort to make
bndtools work more seemlessly with pax exam.
My ideas work really similar to what you suggested, basically first
letting pax exam read bndrun definitions.
However I would also like to see a way to consume pax exams internal
dsl based configuration api (full Java power for configs) for bndrun
definitions. Wdyt?
Toni
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com
--
--
------------------
OPS4J - http://www.ops4j.org - [email protected]
---
You received this message because you are subscribed to the Google Groups "OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.