1816 Osmorc Framework integration 43 JetBrains 2.5 30899 rbeeger Nova derkork trespasserw 2016-03-17 1.4.8


Compatible with:  IntelliJ IDEA Android Studio
30 899
This plugin adds support for the development of OSGi-based applications to IDEA

Download plugin

Recent change notes

Version 1.4.8
  • Bug fixes
Version 1.4.7
  • Bug fixes
Version 1.4.6
  • Compatible with IDEA 14.1
  • Bnd/Bndtools project import
  • Bnd Run Configurations
Version 1.4.5
  • Compatible with IDEA 14
  • Minor fixes
Version 1.4.4
  • Compatible with IDEA 13
  • Framework runners reworked to support modern versions
  • PAX Runner dropped

General usage instructions

First, go to settings -> OSGI -> IDE Settings -> Framework Definitions and add the OSGi framework that you want to work with (Equinox, Felix, etc.). Then add the OSGi facet to any module that should be an OSGi bundle. You can either write your own manifest or let the plugin calculate the manifest for you. To run an OSGi bundle create a new OSGi run configuration and select the framework that you set up in the first step. Then add the bundles you want to run. The plugin will run all dependencies automatically, so you don't need to manually add them. Finally run the newly created run configuration. If you chose to enable the OSGi console you can then send commands to the OSGi container and start/stop bundles.
The plugin is now shipped with Ultimate Edition but is not restricted to it. A new Community-compatible version will be rolled out soon, but meanwhile you can download Ultimate and copy the plugin from there.
Buggy and badly out of date. Doesn't support Equinox 3.7.x or 3.8.x. Osmorc website is either down at this time or no longer exists.
Is there anywhere a roadmap available? In my opinion the OSGi support in intellij 12 is a disaster, currently.
It is no longer compatible with IntelliJ V12. Could someone please update it? Thanks
too buggy.
I'm having some success. How can I update Osmorc to use pax runner 1.7.x vs the 1.5.0 snapshot. I have a immediate requirement to use equinox 3.6.2. If I can get over this hurdle I'll adjust my rating.
I\'m using felix, although I defined the application path, it still use the pax runner with felix 2.0.2.
I don\'t know why it behave like this, really disappoint.
Thanks for your feedback. I am very positive that what you are trying to do is possible with Osmorc because actually Osmorc is supposed to work with Maven, Knopflerfish, etc. It would be very nice if you could file a ticket at


and describe your setup and the issues you encountered. This would help us a lot in both getting your setup to work and overall improvement the plugin and it's user experience. Thank you so much.
unfortunately unusable. nice idea but does not work with maven project structure and build. not even the simplest project config seems to run. nither felix nor knopflerfish is working at least a little. sluggish implementation of a great idea.

As said here by Dmitry Jemerov ( http://www.jetbrains.net/devnet/message/5249646#5249646 ) the plugin manager currently doesn't filter build numbers correctly. The 1.x releases have a correct since-build number, that identifies it as only compatible with IDEA 9. Users wanting to install Osmorc into IDEA 8 will have to download and install it manually as long as the problem isn't fixed in the plugin manager.
I'have opened up an issue regarding the minVersion of the plugin. http://youtrack.jetbrains.net/issue/IDEA-25967. It'll get fixed soon.
The latest version isn't compatible with IDEA 8 but this is the version which is installed if you add it from IDEA. It seems like the plugin registry should have a minimum version set for the new version.

I've starting using Osmorc in IDEA. One nice option that came to my mind and that is not implemented in current version of Osmorc is:

when making a run configuration based on OSGi-Bundles and adding bundles from project (actually from modules) Osmorc add bundles from modules' dependencies and installs them in the framework automatically. But it does not start them! Starting dependent bundles would be very nice since it really reduce the set of chosen bundles to run in the run configuration.


PS. Integration with pax scripts would also be very good. And IDEA has such a great Maven integration!
I think Osmorc should use Pax Runner (http://paxrunner.ops4j.org) as the executor of the OSGi platform.

And I think it should have support for Pax Exam (http://paxexam.ops4j.org) as well.

These projects are state-of-the-art in running and testing OSGi projects, and I think we can leverage each other.

-- Niclas Hedhman, http://www.ops4j.org
Please  sign in  to leave a comment.