On Thu, May 7, 2009 at 00:29, Moloney, Tim M <[email protected]> wrote:
>
>
> What are the pros and cons of using feature repositories, Maven
> repositories, and OSGI bundle repositories in Karaf?
>
> Feature Pros
> - can include bundle configuration
> - can include other features
> - can group unrelated bundles/features
> - no required directory structure
>
> Feature Cons
> - manually created
> - no automatic dependency resolution

We have a maven plugin that can be used to create a features
repository from a maven project, but there is still a bit of work
needed.

> Maven Pros
> - no configuration required
> - convenient for development, can reuse local repository
>
> Maven Cons
> - no automatic dependency resolution
> - no bundle configuration
> - requires deep directory structure

In theory, maven is more a protocol than a provisioning system.  Using
the maven pax url handler which is included in Karaf,
you could provision features or OBR using maven repositories (we
usually do that when using features).
This provide local caching and enable using a more abstract URI so you
don't have to point to the real file using an http location.
THis can also be used from within a company to make everything point
to a single controlled repository, whereas plain http urls can not be
easily moved around.

> OBR Pros
> - automatic dependency resolution
> - no required directory structure
>
> OBR Cons
> - no bundle configuration
> - repository isn't as dynamic since bindex must be run to assimilate
> changes

OBR is really verbose and leads to *very* big files.  The existing
repositories don't use maven repositories, so you can't benefit from
any local cache (i.e. everything will be downloaded from the
internet).

>
> Did I miss anything?  It appears that a combination of these is probably
> best.  How are people using these repositories when distributing their
> projects?

I tend to advocate features + maven.

>
> Tim Moloney                 The reasonable man adapts himself to
> MRSL                        the world; the unreasonable one persists
> 2015 Cattlemen Road         in trying to adapt the world to himself.
> Sarasota, FL  34232         Therefore all progress depends on the
> (941) 377-6775 x208         unreasonable man. - George Bernard Shaw
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to