Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export OSGI-Application from Eclipse

I've developed an osgi application (no rcp) using eclipse. It consists of several Plugin-Projects-Bundles and dependencies from eclipse plugins folder (commons.* ...)

The application works fine when launched using eclipse.

What is the best way to export and deploy such an application from eclipse? Is there a simple way to export my launch configuration?

All I found was for rcp projects.

like image 844
Wienczny Avatar asked Feb 09 '10 00:02

Wienczny


2 Answers

All you need to do is religiously fill your Manifest.MF via PDE(Plugin Editor), you must

  1. Add proper plugin-dependencies in the Dependecies tab in PDE
  2. Fill the Classpath and Exported Packages in the Runtime tab
  3. And most importantly, make sure in the Build tab you have checked on the required resources to be exported.

Its very important to note point 3, it is here where most people make mistake and wonder why the project is running perfectly in Eclipse but doesent run when exported.

Right-Click on your project->Export->Plugin-Development->Deployable Plugins and Fragments

like image 88
Suraj Chandran Avatar answered Oct 30 '22 10:10

Suraj Chandran


Check out Chapter 9 on packaging OSGi/Equinox applications in the new OSGi and Equinox book. It's available on rough cuts now: http://my.safaribooksonline.com/9780321561510. It should be available in print for purchase by EclipseCon in March.

like image 40
James Branigan Avatar answered Oct 30 '22 10:10

James Branigan