felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: [Discuss] Providing typical felix dependencies as a pom
Date Thu, 14 Jul 2016 05:38:10 GMT
So basically, what you are proposing is a BoM (Bill of Material).

I'm not against, but I don't think it's a Felix concern, or we would 
need to create a specific module in Felix for that.

My $0.01


On 07/13/2016 12:01 PM, Christian Schneider wrote:
> Currently when you start an OSGi project from scratch it is quite
> tedious to create a working deployment for a basic OSGi framework with
> some typical dependencies.
> What I found that most people use is this:
> - framework
> - event admin
> - config admin
> - meta type
> - fileinstall
> - gogo
> - scr
> - http
> Simply providing the actual bundles would be too inflexible. I think it
> would make sense to provide a repository though that can
> be used to resolve the actual dependencies you want to include.
> Bndtools recently started to support maven. With version 3.2.0 it is now
> possible to create an index from a pom and use it for you project.
> I am currently experimenting with this to provide an easy way to create
> applications.
> You can find an example pom for an index here:
> https://github.com/cschneider/osgi-chat/blob/master/packaging/index/pom.xml#L15-L102
> The marked dependencies are the ones I needed for the typical felix
> bundles. So what I propose is to create a project in felix that links
> the dependencies of those projects
> in their current version and that is released from time to time to
> reflect the newest working set. This would make it much easier to start
> as you could just start with the
> recommended felix set. The user can then use them by just adding one
> dependency but also easily override individual parts if he needs
> something in a newer version.
> This can then be used to create a bndrun file with requirements that are
> resolved against the user repository.
> See
> https://github.com/cschneider/osgi-chat/blob/master/packaging/all/chat-all.bndrun
> As you can see some Apache projects like Aries RSA and CXF-DOSGi already
> provide such dependency poms which makes them really easy to use:
> https://github.com/cschneider/osgi-chat/blob/master/packaging/index/pom.xml#L111-L122
> Of course for these projects it is easier as their bundles are simply
> released together but I think it would also make sense for felix to
> reflect the currently recommended
> combination of the typical bundles.
> So what do you think?
> Christian
> Btw. Peter Kriens is currently working on a bndtools repository that
> does not even need an OBR index and instead can directly use such poms.

Jean-Baptiste Onofré
Talend - http://www.talend.com

View raw message