CC 2.6 has a new feature - <veto>.  It enables preventing a build from
happening if a dependency has a build to do.

Prior to 2.6, the best answer I had was to make the sleep times of the
dependant projects "small" (e.g. 30 seconds) relative to the depending
projects (e.g. 2 minutes) in hopes the others have higher likely to build
first.  This worked reasonably well, but we expect and incur the failures
occasionally.
 

-----Original Message-----
From: Xavier Hanin [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 16, 2007 3:02 AM
To: Maven Users List
Subject: Re: Cruiscontrol and Maven dependency management

On 3/15/07, Aidan O'Donnell <[EMAIL PROTECTED]> wrote:
>
> I am using cruisecontrol to build a multimodule project.
>
> The problem I am observing is that if projects A and B are checking in 
> at the same time and B depends on A the order that they are built in 
> is not set.
> This means that if B builds before A then the build will fail.
>
> I have had a look for ways to manage the ordering of dependencies - 
> one thing I was thinking would be to get the bootstrapper to build A 
> before B (not nice).
> The other thing I was thinking would be to do a complete build for the 
> project each time and that way get Maven to manage the ordering 
> through the parent POM (could be a timely process).
>
> Any suggestions?


I know the idea will seem strange, but there is a plugin [1] for cruise
control allowing to  make cruise dependencies aware, based on Ivy. Since Ivy
is able to parse maven 2 poms, it may be usable in your case. The problem is
that the plugin (IvyCruise) is not really maintained any more, and that Ivy
pom parsing is not always perfect (but improving), so do not expect it to be
an out of the box solution.

My 2c.

- Xavier

[1] http://www.jaya.free.fr/ivycruise.html

Aidan
>
> _________________________________________________________________
> Solve the Conspiracy and win fantastic prizes.
> http://www.theconspiracygame.co.uk/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to