This is a simple example of an OSGI project for Eclipse Kura.
- Eclipse Neon Version: 2019-09 R (4.13.0). An additional plugin, mToolkit, is needed to allow remote connectivity to an OSGi framework on a Kura-enabled target device. To install mToolkit into Eclipse, use the following steps:
- Open the Help | Install New Software… menu.
- Add the following URL as an update site based on your version of Eclipse http://mtoolkit-neon.s3-website-us-east-1.amazonaws.com
- Install the “mToolkit” feature (you need to uncheck the Group items by category checkbox in order to see the feature).
- Restart Eclipse. In the menu Window | Show View | Other, there should be an mToolkit | Frameworks option. If so, the plugin has been installed correctly.
- Development platform Linux (Debian 10).
- Eclipse Kura 4.1.0 is compatible with Java 8 and OSGi R6.
The only requisite to build from sources is an already
installed Eclipse Kura User Workspace.
- Raspberry pi 3 and 4.
- Eclipse Kura 4.1.0.
The binary package ready for the installation can be found in folder "resources/dp".
- Create Plug-in Project.
- Add Dependencies to Manifest.
- Create Java Class.
- Create Component Class.
- Create the Default Configuration.
- Resolve Dependecies.
- Import Package.
- Build Configuration to Manifest.
- Export the OSGi Bundle.
- Create a Deployment Package.
Watch the video on youtube.
- Deploying Bundles.
- Kura logs.
- Install/Upgrade Package.
- OSGi console for managing bundles (Telnet).
- Snapshots.
- Complete package uninstallation.
- Multiple instances of a component.
Watch the video on youtube.
Eclipse Kura Documentation:
- http://eclipse.github.io/kura/
- https://www.eclipse.org/kura/downloads.php
- https://download.eclipse.org/kura/docs/api/
- https://docs.osgi.org/specification/