I just published a new Blueprint over on cqblueprints.com that details how to easily build and deploy bundles into your server.

is built on top of an OSGi container and as a result custom code and functionality can be added to through the features provided by OSGi. To be able to deploy custom code into an OSGi container, developers must package their code as a bundle. An OSGi bundle is simply a Jar file that has had extra meta data added to it. This Blueprint details how to create an OSGi bundle using Apache Maven and how to deploy that bundle into a running instance.

See Building and Deploying OSGi Bundles