Deploying OSGi Feature Repositories to a Maven Repository

Once you've started deploying bundles into maven; the next step is to collect your bundles into feature repositories and make them available in your maven repository. (Don't get confused by the terminology - A OSGi feature repository is different than a maven repository) Turns out it's fairly easy to get setup, since an OSGi feature repository is just an XML file. All you need to do is attach the XML file as an artifact to a maven project and you can deploy it and reference it from ServiceMix (the OSGi container I'm using; it might be possible in others, but I haven't tried). Here's the process I use to deploy feature repositories:
Read More

Hosting OSGi Artifacts with Classifiers in Maven

One of the requirements for the software that we're developing at work is the ability to load components into an OSGi container.This prompted an interesting question from one of the developers I work with about deploying both a regular JAR and an OSGi bundle from his project into our Maven repository. He couldn't access both of the artifacts after deploying them, only the last one deployed, the other returned an error related to "build number not found". After some digging I discovered this was being caused by our use of classifiers.
Read More