Sebastian,

Are you working on a project for ServiceMix 3 or ServiceMix 4? The latter is OSGi based, so you could just develop your SU as OSGi bundles as well. What version of the Maven JBI plugin are you using? Could you try defining both plugins in the same file (the root pom probably) so you can control the order in which they are loaded more easily?

Regards,

Gert

Sebastian Gomez wrote:
Hi everyone.
I'm developing a project that uses both Sling and ServiceMix. To compile the
whole project I have a unique POM with the references to all the modules of
the project. I've noticed a strange behaviour when the order of the modules
implies compiling a bundle before a service-unit: I don't know why but it
makes the service-unit get installed in my repo as a .jbi-service-unit
instead of as a .jar. It looks like using the maven-bundle-plugin affects
the preceding compilations. To me it doesn't make much sense, but maybe it
has an explanation. Any ideas?

Sorry for bothering both mailing lists, I wasn't sure which one should be
addressed.

Sebastian Gomez.

PS: I've done a little test to prove this by getting servicemix's
loan-broker-bpel example and modifying the loan-broker-bean-su to be
packaged as a bundle. Doing this makes the compilation of the loan-broker-sa
get an error for not being able to find the other 3 service units. If you
want me to attach it just tell me.


Reply via email to