Re: Refactor samples to use the maven jbi plugin

2006-08-02 Thread Ramon Buckland
Guillaume Nodet wrote: I've just seen a problem though. I though the maven-jbi-plugin would embed jar dependencies in the service unit, but it does not seem to be the case. Let's say I have a multiproject build containing a jar, a SU and a SA. If the code inside the SU depends on the jar, I

Re: Refactor samples to use the maven jbi plugin

2006-08-02 Thread Philip Dodds
The manve tooling now does all the packaging for SA and SU's : see http://www.servicemix.org/site/working-with-service-units.html http://www.servicemix.org/site/working-with-service-assemblies.html The problem with the xbean classpath has been discussed a little, and I think we are trying to

Refactor samples to use the maven jbi plugin

2006-08-01 Thread Guillaume Nodet
Based on some earlier discussions, I will start to refactor some of the samples that use standard JBI components to use the maven jbi plugin instead of an ant based build file. This will allow: * testing the samples as part of the build * demonstrate the use of the jbi plugin Note that the

Re: Refactor samples to use the maven jbi plugin

2006-08-01 Thread Guillaume Nodet
I've just seen a problem though. I though the maven-jbi-plugin would embed jar dependencies in the service unit, but it does not seem to be the case. Let's say I have a multiproject build containing a jar, a SU and a SA. If the code inside the SU depends on the jar, I would want the jbi plugin

Re: Refactor samples to use the maven jbi plugin

2006-08-01 Thread Guillaume Nodet
On 8/1/06, Terry Cox [EMAIL PROTECTED] wrote: I've just seen a problem though. Far from me to say I told you so but... snigger Did you ? I missed that, you should talk louder ;) This is causing us some problems too. It also raises the issue of the build resolving or flagging dependency

Re: Refactor samples to use the maven jbi plugin

2006-08-01 Thread Guillaume Nodet
On 8/1/06, Philip Dodds [EMAIL PROTECTED] wrote: Probably need to modify the GenerateServiceUnitMojo so that it contains logic similar to teh GenerateComponentMojo. Though we'll need to filter out the jbi-component so it does end up bundled. I can take a look now if you like That would be

Re: Refactor samples to use the maven jbi plugin

2006-08-01 Thread Guillaume Nodet
Done. In samples/loan-broker. Currently, the problem is that the dependent jar servicemix-components which is referenced in the pom for the loan-broker-lw-su SU is not included in the SU. (Wether this particular one should be or nor is discussed in another thread, so ...) -- Cheers, Guillaume

Re: Refactor samples to use the maven jbi plugin

2006-08-01 Thread Terry Cox
Do you have an example, I'm not sure to understand. Are you talking about a SU that depends on another SU ? Well, elements in a SU can have dependencies on both component libraries and normal java libraries. SAs may contain SUs that have dependencies upon different versions of these