Skip to main content



      Home
Home » Eclipse Projects » Virgo » STS and PAR deployment
STS and PAR deployment [message #586607] Thu, 08 July 2010 18:01 Go to next message
Eclipse UserFriend
Hi,

I'm quite new to Virgo and spring Dm in general.

There is something I don't understand using the STS IDE to deploy my par.

Here is my folder structure.

myproject.toplevel
+ myproject.parent
+ myproject.par
+ myproject.jpa
+ myproject.db

I based this on the greenpages directory structure.

My toplevel pom, has just a bunch of <module> element to include the bundles.

My parent project basicly holds dependencyManagement configuration in the pom.

When I maven package the toplevel project, the PAR gets build under myproject.parent/target

But I can not find a way to deploy this directly to Virgo from STS. When I use Add/Remove the toplevel project does not list. The par bundle does list, but the jpa and db projects are not included.

When I do mvn package on the par, I get dependency not found error on the jpa and db bundles.

Is there a way to Add the toplevel project to the Virgo runtime so the PAR would get deployed automatically?

Thanks!
Re: STS and PAR deployment [message #586624 is a reply to message #586607] Fri, 09 July 2010 04:27 Go to previous messageGo to next message
Eclipse UserFriend
A PAR file packages a number of bundles. In this example, the PAR should package the jpa and db bundles. Deploying the PAR to Virgo will cause the bundles inside the PAR to be deployed too, but scoped to the PAR.

You may wish to step through the http://www.eclipse.org/virgo/documentation/virgo-documentati on-2.1.0.M02-incubation/docs/virgo-getting-started/html/inde x.html up to and including chapter 3 to see this working with the (solution form of the) greenpages sample in STS.
Re: STS and PAR deployment [message #590470 is a reply to message #586624] Wed, 14 July 2010 14:58 Go to previous message
Eclipse UserFriend
Hi,

Thanks for your answer.

The problem however is not the PAR... I understand how it more or less works. Everything works when I use command line tools (mvn package, cp to deploy to the hotdeploy folder, ...)

I just don't find a streamlined way to do everything from within STS.

This is more of a STS question then it is a Virgo/OSGi question really.

The things I want to be able to do is:
- run unit test on single bundles
- run integration tests across multiple bundles
- deploy the par to Virgo from within STS
- update a single bundle within the par without updating the complete application (par)

Anyway, I'll experiment some more. Hopefully I can start being productive very soon.

I'm installing the new STS 2.3.3 M1 as we speak ... I'll see how that goes
Previous Topic:Virgo tooling for Eclipse
Next Topic:Ignoring directories in the pickup directory
Goto Forum:
  


Current Time: Wed Jul 23 19:15:40 EDT 2025

Powered by FUDForum. Page generated in 0.03699 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top