> One quick question though! > > Debugging is very easy but I didn't know it for a while because it's not so > obvious how to point your app to the target platform directory where your > maven jars are copied, AND at the same time at the project for the source. > This threw me for a while and I only found it by accident one day. > > Can you please elaborate on this? for instance If I have a .eba (or bunch > of bundles comprising my project) can I run them in a container and debug > them? How do I specify the required bundles (is it similar to the assembly - > Aries samples) It will be nice I can some how deploy my app bundles and > specify the dependencies so that the dependencies are automatically > provisioned from maven? >
Not sure if I understand all your questions but I'll take them in order of technology first. Once you have m2eclipse your maven "container" is your classpath and visa versa. So the provisioning thing is done for you EXCEPTING I prefer to keep all my projects "closed" except the one or two bundles I am working on. You are then pointing your app towards the target platform - which is in my case a target dir with all latest maven bundles copied to it. This is then your runtime. For some reason this is also the only way a "product" based runtime works for me - I can never get a product based run to work except from the target platform OSGi bundles. So you make sure your build includes an instruction to copy the bundle to the target dir every build. You thus get the runtime going. Once this runtime is going, you then have to add back in your project as source. Try to debug without it, it will error when it tries to go to source and ask you to browse down to the project to add it as source. Hope this helps. I'm describing days of learnings in a couple paragraphs, rarely adequate. For example, I'm assuming you have a lot of experience with the eclipse runtime setup, particularly the plugins tab.
_______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
