You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Erik Bengtson <er...@jpox.org> on 2006/09/11 21:20:36 UTC
Best Practices on dependencies [was Re: Orbit]
Hi,
What is the best practice regarging dependencies? For instance, we have some
bundles with dependency to commons-dbcp, commons-pool, etc.. Those are
currently not in the repository, however I suppose they will eventually be.
Meanwhile, should be have a dependency to
org.apache.commons_pool/org.apache.commons_dbcp bundles or libraries?
If the best practice is dependency to a bundle, what is the appropriate bundle
ids / version?
We do not distribute commons bundles/libraries and we would expect users to
create their own until available in the repository.
Aside question, can you give a light on the relationship between OBR and Maven 2
repos and future?
Thanks,
Erik Bengtson
Quoting Jeff McAffer <Je...@ca.ibm.com>:
> We already do. The entire Eclipse Callisto update site (several hundred
> bundles) is available through OBR. Query for "eclipse" at
> http://bundles.osgi.org/Main/Repository
>
> Jeff
>
>
>
>
> Didier Donsez <di...@imag.fr>
> 09/10/2006 08:13 AM
> Please respond to
> felix-dev@incubator.apache.org
>
>
> To
> felix-dev@incubator.apache.org
> cc
>
> Subject
> Orbit
>
>
>
>
>
>
> Jeff McAffer wrote:
>
> >... The Eclipse community is in the
> >process of creating the "Orbit" project
> >(http://eclipse.org/proposals/orbit/).
> >
> >... Without seeking
> >to start the technical discussion here in this thread, I am thinking of
> >issues like
> > - bundle symbolic name conventions
> > - version numbering
> > - use of nested jars
> > - bundling libraries that are actually multiple jars (i.e., is
> the
> >rule one bundle per JAR)
> > - ...
> >
> >
> Do you plan to have a representation compliant with the OBR v2 service ?
>
> Regards
>
> Didier
>
>
>
>
Re: Best Practices on dependencies [was Re: Orbit]
Posted by "Richard S. Hall" <he...@ungoverned.org>.
Erik Bengtson wrote:
> What is the best practice regarging dependencies? For instance, we have some
> bundles with dependency to commons-dbcp, commons-pool, etc.. Those are
> currently not in the repository, however I suppose they will eventually be.
> Meanwhile, should be have a dependency to
> org.apache.commons_pool/org.apache.commons_dbcp bundles or libraries?
>
> If the best practice is dependency to a bundle, what is the appropriate bundle
> ids / version?
>
> We do not distribute commons bundles/libraries and we would expect users to
> create their own until available in the repository.
>
This is sort of a loaded question, but in general I would say that your
dependencies should not be on a bundle at all, but on the packages that
your bundle needs. Then any number of bundles can satisfy the dependency.
> Aside question, can you give a light on the relationship between OBR and Maven 2
> repos and future?
Hard to say. OBR is specifically geared toward resolving OSGi
dependencies, thus it is better suited to dealing with package
dependencies, service dependencies, bundle dependencies, platform
dependencies, etc. Currently, the Maven dependency model is not
sufficient for OSGi dependency resolution. It might be nice if they
could be brought closer together and there has been some discussion in
that area, but we are all busy with other things.
At a minimum, we hope to get Maven generating OSGi bundle metadata,
which would simplify many things.
-> richard