The fundamental difference between OSGi versioning and Ivy (or Maven) versioning is that OSGi uses package-versioning:
Import-Package: org.apache.log4j; version="[1.2.15,1.3)" whereas Ivy uses artifact-versioning: <dependency org="org.apache.log4j" name="com.springsource.org.apache.log4j" rev="1.2.15" /> (OSGi also supports bundle-versioning, but it is not generally considered good practice to use it: Import-Bundle: com.springsource.org.apache.log4j; version="[1.2.15,1.2.15]") This typically means that you have to specify your dependencies twice: - first at build-time, using artifact versions - again at run-time using package versions (in the bundle manifest) The Apache Felix Sigil project ( http://felix.apache.org/site/apache-felix-sigil.html) provides an Ivy integration with OBR repositories. (It also provides Eclipse IDE integration, but the Ivy integration can be used separately). Sigil provides a custom Ivy parser and Ivy resolver which transparently augment the artifact dependencies in ivy.xml by resolving OSGi Import-Package dependencies against OBR repositories. This means that typically you don't need to explicitly list any artifact dependencies in ivy.xml, as they are automatically determined by Sigil from the Import-Package dependencies. Sigil also includes an Ant "bundle" task, which builds the actual OSGi bundles, using bndlib. -- Derek On 20 July 2010 18:53, Shawn Castrianni <[email protected]>wrote: > Has anybody researched the relationship between OSGI and IVY? I have a > large build system running on IVY and is working great. However, > development wants to move towards an OSGI runtime framework which impacts > how the modules are built. I am trying to figure out how I can merge in > OSGI bundle creation with my IVY based build system. > > I am finding that the dependency mechanism and publish mechanism in OSGI is > fighting with the same concepts in IVY. Therefore, I am not making any > progress on this OSGI project. > > Has anybody spent any time researching OSGI and have any thoughts on it in > relation to IVY? > > --- > Shawn Castrianni > > ---------------------------------------------------------------------- > This e-mail, including any attached files, may contain confidential and > privileged information for the sole use of the intended recipient. Any > review, use, distribution, or disclosure by others is strictly prohibited. > If you are not the intended recipient (or authorized to receive information > for the intended recipient), please contact the sender by reply e-mail and > delete all copies of this message. >
