debugging OSGi with osmorc in connection with maven

Has anyone tried out osmorc OSGi plugin with the maven bundle plugin? How does debugging of an OSGi inside IntelliJ work.

I guess it is kind of hard because the plugin would need to connect OSGi with the maven dependency management. For that reason the IDE integrations are always tricky. Eclipse seemed to have tackled this problem (http://docs.codehaus.org/display/M2ECLIPSE/Tycho+project+overview).

Is osmorc doing something similar?

1 comment
Comment actions Permalink

Hi Manuel,

we are currently working on integrating Osmorc with Maven. What is
working so far is that Osmorc is capable of reading your bundling
settings from Maven's POM and automatically creates/updates it's facets
as needed. Osmorc also checks your maven dependencies and highlights
those that might cause problems inside an OSGi container because they
lack the required OSGi headers. These features are currently in testing
and are expected for version 0.13. Bundle search and retrieval from
OBRs is on the list of planned features.

As for debugging, you can debug an OSGi project inside IntelliJ just
like any other project. Simply create an Osmorc/Equinox run
configuration and press the debug button.

Regarding Tycho, we do something similar with Osmorc, however we do not
focus on Maven only. Osmorc provides support for OSGi development but
does not require a certain build tool to be used. Of course we try to
provide support for build tools like ant and maven where it provides an
actual benefit but in general all features of Osmorc are designed to
work with whatever build approach you choose, be it ant, maven,
internal build, shellscripts or a combination of it. So if you are
using Maven and Osmorc finds some OSGi-related information inside your
POM, then this information will be used. If Osmorc finds a Manifest.MF
somewhere, then this is used for building. If you don't want to bother
with writing Manifests at all Osmorc will create one for you on the fly
(using bnd in the background). If you have bnd configuration files, you
can use them as well with Osmorc. I think you get the idea ;)

Best regards,
Jan


On 2009-04-17 22:55:00 +0200, manuel aldana <no_reply@jetbrains.com> said:

Has anyone tried out osmorc OSGi plugin with the maven bundle plugin?
How does debugging of an OSGi inside IntelliJ work.

I guess it is kind of hard because the plugin would need to connect
OSGi with the maven dependency management. For that reason the IDE
integrations are always tricky. Eclipse seemed to have tackled this
problem
(http://docs.codehaus.org/display/M2ECLIPSE/Tychoprojectoverview).

Is osmorc doing something similar?

---
Original message URL: http://www.jetbrains.net/devnet/message/5236068#5236068



0

Please sign in to leave a comment.