I'm currently investigating in the field of dev environment for OSGi bundles.
My goal is to find a way to develop, test and debug with ease the bundles I'll be coding. Besides, I have some "cultural" requirements.
So far, here are the infos I know
Have you got any ideas ? Some maven/eclipse plugins ?
EDIT : my goal is not to provide eclipse plugins or features, it is in fact to create independant application, that may be ultimately packaged as webapp (in a similar fashion to, as an example, sling). Is Tycho able to do that ? It doesn't seems so, as its packaging types page only lists eclipse specific packages types (but I may be wrong)
In OSGi, a single component is called a bundle. Logically, a bundle is a piece of functionality that has an independent lifecycle – which means it can be started, stopped and removed independently. Technically, a bundle is just a jar file with a MANIFEST. MF file containing some OSGi-specific headers.
The OSGi (Open Service Gateway Initiative) specification is a Java framework for developing and deploying modular software programs and libraries.
The Bundle-ClassPath header defines a comma-separated list of JAR file path names or directories (inside the bundle) containing classes and resources. The full stop ( '. ' \u002E ) specifies the root directory of the bundle's JAR. The full stop is also the default.
I have not tested it, but when it comes to maven/eclipse plugin managing OSGi bundles, Tycho seems to be the official project.
See Create a new OSGi bundle in Eclipse
Of course, Tycho is part of the Maven development stack:
Other options are mentioned in the blog entry Me, OSGi and Maven" mentioned by the OP Riduidel in the comments:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With