There are a couple of different solutions for this problem, though neither is what I'd prefer.
Solution 1 is as Jamie suggested: have CC monitor trunk. To do this, however, you'll need to have a project.xml in the trunk directory for the sole purpose of hooking it up to CruiseControl. The trunk project could then call through to the multiproject when it actually builds. Another solution would be more along the lines of what you've been thinking: update the projects via a multiproject goal. To do this, you'll need to set a system property (goal=scm:update), and currently the maven tag in CC doesn't allow this. The way I've worked around this issue is to instead have the maven tag point to a different batch file that calls the standard maven script and sets the necessary properties. This isn't hard to do, but is a bit klunky. It would be better if the maven tag would accept the child property tag the way the ant tag does (maybe some day I'll fix that and file a patch). However, with this solution you will still need to make sure that CC is looking at the trunk directory (with all of its subdirectories) in the modificationset section to determine when it should do a build. Otherwise, it won't pick up on changes to subprojects. ..David.. -----Original Message----- From: Michael Mattox [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 06, 2005 7:54 AM To: Jamie Bisotti Cc: Maven Users List Subject: Re: Multiproject CruiseControl - how to do CVS update > What does the CVS structure look like? Something like: > trunk/ > project 1/ > project 2/ > multiproject/ This is correct. > Just have CC monitor trunk/ and you should be fine. There are no files in trunk, all my maven files are in multiproject. If this is what you understood, can you explain what you mean by have CC monitor trunk? From what I've seen CC is not doing the CVS update, so I have to do that with Maven, and I don't have any way to do it other than: -Dgoal=scm:update multiproject:goal Thanks, Michael -- This E-mail is confidential. It may also be legally privileged. If you are not the addressee you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return E-mail. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. --------------------------------------------------------------------- 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]
