View Full Version : Setting up Eclipse for Spring Dynamic Modules development
Nico
Jun 4th, 2008, 10:27 AM
Hi,
I'd like to know if the Setting up Eclipse for Spring Dynamic Modules development (http://www.springframework.org/node/360) documentation was still up-to-date ?
I'm asking this question because this documentation , for example, refers to spring-osgi/spring-modules/spring-required-libraries directory which, according to SVN log has been moved to somewhere else.
Costin Leau
Jun 5th, 2008, 01:38 AM
Nico, the docs contain some useful information but indeed is out of date - we have to update.
In the meantime, see the following section in the reference documentation:
http://static.springframework.org/osgi/docs/current/reference/html/appendix-pde-integration.html
Nico
Jun 5th, 2008, 03:00 AM
Hi Costin,
Thanks for your reply.
In fact I was wondering how you managed to integrate Eclipse IDE with maven. I'm trying to do the same for an RCP application and I have some troubles to make all work together in a clean way.
For example if one bundle have a maven dependency on another OSGi bundle, you only need to add a dependency configuration in the pom.xml. But from Eclipse IDE, that dependency is not managed correctly (even with m2eclipse). Export-package directive are ignored for example. The only way I found to make it work is to copy (with mvn eclipse:to-install-plugins) dependencies into the runtime platform. So I was wondering how you were managing it in spring-dm development.
I know this is out the subject of this forum, but if you have some tips about how to manage maven project in eclipse in a smart way, i'll appreciate ;)
Nicolas.
Costin Leau
Jun 5th, 2008, 01:42 PM
Nico, Oleg is working a tutorial (he already has one posted on the Spring-OSGi homepage). As for Maven + Eclipse I think that's something out of our reach - I believe there are two plugins addressing that in the works but I haven't used them yet.
I for one, use vanilla Eclipse separate from Maven. There is no integration and I ran the two individually to avoid caching problems. It's not ideal and I guess, I just got so used to it that it doesn't bother me any more.
Note that I'm not Maven expert (nor fan) so there might be an easy solution in existence that I simply don't know about but I'd be keen to find out.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.