Building and Running iPOJO bundle from Eclipse
This page explains how to build and run iPOJO bundles without exiting Eclipse and breaking the compile-run cycle.
1) Import the iPOJO Bundle project
Download the project archive (URL), and import it as an Existing Project into the Workspace
Then click on finish
2) Configure the target platform
The resulting project, you looks like:
Before using the project, you need to configure the OSGi platform. It will be run inside Equinox. To achieve this, edit the .target
file and then click on set as Target Platform
.
3) Develop you bundle
The imported project contains a very simple component using annotations. But, obviously you can delete/change it. For XML-metadata, use metadata.xml
file is in the project root.
Once you're done, we can run your bundle.
3) Run you bundle
Right-click on the .launch
file and then go on Run-As -> MyiPOJOBundle
. Equinox will be started and your iPOJO bundle deployed and started:
Once run for the first time, you can re-run it from the run
icon.