Hi Piotr, I don't think this is currently possible with Maven 2.0. You could do it by binding cargo:start and cargo:stop to other phases but that won't be nice and clean.
One solution you can use today is simply to put the cargo code in your setUp()/tearDown() methods (or in a suite's TestSetup if you want to run that code once only). The principle is described here (but it's using an oldish version of cargo): http://tinyurl.com/92fh5 Another solution would be for the cargo plugin to add support for this use case. So far we've not done it because we think it can be better achieved by using the Cargo API in your unit test code. WDYT? Hope it helps, -Vincent > -----Original Message----- > From: Piotr Smoliński [mailto:[EMAIL PROTECTED] > Sent: dimanche 11 décembre 2005 23:02 > To: [email protected] > Subject: m2: Lifecycle phase binding (integration-test) > > Hi everybody, > > Are there any possibilities to provide ordering for executions bound to > specified phase? > I would like not to do custom packaging, but use existing one. For > example I'd like to > implement integration-test phase for war (or ear) packaging using goals: > * cargo:start > * surefire:test > * cargo stop > > TIA > Piotr Smolinski --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
