Our situation is the following, we have an application that uses Spring MVC, Spring dm, Maven and we started few weeks ago to use Virgo (before of that we where using the Equinox incorporated with Eclipse). It has many bundles and most of them have dependencies to others.
We try to deploy from Eclipse IDE all the bundles together but it crashed for not respect the dependencies. So we must to deploy one by one, to respect the bundle dependencies.
For accelerate the application development we want to create a plan which deploy all the bundles directly from Eclipse IDE and that uses the workspace proyects to deploy in the Virgo server. The problem is that it looks for the bundles compiled in the repository forlder of the VWS and not realize that are in the workspace. So we want to know if there is any option to do that.
We are using Eclipse Helios, Spring DM Server tools plugin v2.6 and Virgo 2.1.1.RELEASE.
The dm Server tooling has rudimentary support for plans which should support the scenario you are describing. Try creating a new plan by looking in the EclipseRT section for artefact types that can be created. Then IIRC you can drag and drop bundles from the workspace into the plan. I'm sure you'll figure it out once you find how to create a plan.
Thanks for your reply. I tried to do what you said but Eclipse doesn't give me an option to create a plan, just bundles and pars, so as the virgo documentation says I create a faceted proyect with an Eclipse RT plan facet and when I finish the creation an error pop up araise saying that
" Problems encountered while setting project description.
Nature com.springsource.server.ide.facet.core.plannature is missing prerequisite nature: org.springframework.ide.eclipse.core.springnature."
The only way I had to create a plan was creating a common java project and I create inside it an xml file with the plan definition (with extension .plan). Virgo recognize the plan I allow me to deploy it but it don't find the bundles from my workspace. If I put the compiled bundles in the repository folder of virgo server, it works, but it's a bit anoying.
The plan support in the tooling is rather half-baked as it was added pretty late in the 2.0 development cycle.
You can convert a plain project into a plan project by right clicking on the project, clicking Spring Tools->Add OSGi Plan Project Nature. Then you need to create a suitable xxx.plan XML file with the appropriate contents.
Finally, you should be able to drag and drop the plan project on the running Virgo server.
Sorry this is so difficult. It's something that should improve as the Virgo tooling evolves in Eclipse.org.
It works with drag & drop! Anyway I think there is something that don't work properly because we have to deploy two times the same plan deploy correctly. The first time we deploy the plan it still arraise an error because the server can't locate the bundles but we can see the bundles are deployed in stage area. When we undeploy and deploy the plan for second time it works fine.
Another problem what we had was that adding the plan from the option "Add and Remove..." of the server instance allways throws an error to find the bundles, cause it look for them in the repository and not in the workspace! A bit strange!