Tag Archives: Jar

How to create/generate OSGi bundles from existing third-party jars?


If you get to work with OSGi, you often have to generate OSGi bundles. Any third party jar can’t be included straightaway in your application – you need to create an OSGi bundle of the jar you want to include. Quoting from http://blog.springsource.org/2008/02/18/creating-osgi-bundles/, a bundle is a JAR file that: Contains […] resources Contains a […]

Maven: Packaging all dependencies in a single JAR


Add maven-assembly-plugin to your pom.xml and bind it to the package lifecycle event. mvn clean package will do the trick.