RE: Multiproject CruiseControl - how to do CVS update
> 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. I am ok with this approach. the only part I'm not sure how to do is the last part.. how does the project.xml call the real multiproject's project.xml and invoke my goals (scm:update, clean, multiproject:deploy, multiproject:site, site:deploy)? Thanks a lot for the help, I've seen these types of questions raised a few times in the CC & Maven mailing lists but I haven't been able to find an answer. I think it'd be great to get the details worked out. :) -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]
RE: Multiproject CruiseControl - how to do CVS update
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]
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]
Re: Multiproject CruiseControl - how to do CVS update
What does the CVS structure look like? Something like: trunk/ project 1/ project 2/ multiproject/ Just have CC monitor trunk/ and you should be fine. On 7/6/05, Michael Mattox <[EMAIL PROTECTED]> wrote: > > Is there a reason doing the CVS update from the multiproject directory > > doesn't work? It should get all subdirectories, which should update all > > of the subprojects (unless the multiproject doesn't follow the norm of > > having the subprojects located in subdirectories of the multiproject). > > I didn't know it was "the norm" to have the subprojects be subdirectories > of the main projects. I always kept the main project at the same level.. > > - project 1 > - project 2 > - multiproject > > The problem with not using a flat hiearchy is that it causes problems with > Eclipse. > > Is there another way or do I have to restructure my project directories to > use CC? > > -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] > > -- Jamie Bisotti Software Engineer Lexmark International, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiproject CruiseControl - how to do CVS update
> Is there a reason doing the CVS update from the multiproject directory > doesn't work? It should get all subdirectories, which should update all > of the subprojects (unless the multiproject doesn't follow the norm of > having the subprojects located in subdirectories of the multiproject). I didn't know it was "the norm" to have the subprojects be subdirectories of the main projects. I always kept the main project at the same level.. - project 1 - project 2 - multiproject The problem with not using a flat hiearchy is that it causes problems with Eclipse. Is there another way or do I have to restructure my project directories to use CC? -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]
RE: Multiproject CruiseControl - how to do CVS update
Is there a reason doing the CVS update from the multiproject directory doesn't work? It should get all subdirectories, which should update all of the subprojects (unless the multiproject doesn't follow the norm of having the subprojects located in subdirectories of the multiproject). One problem you will run into when trying to do an update as you're describing is that the individual projects will get updated, but the multiproject project itself won't get updated. So if the multiproject contains properties or settings that the subprojects inherit from, then these won't get updated. ..David.. -Original Message- From: Michael Mattox [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 05, 2005 10:22 AM To: users@maven.apache.org Subject: Multiproject CruiseControl - how to do CVS update I integrated Maven with Cruise Control and everything is working except for the scm:update. I can't find a way to do a multiproject update. Usually I do it like this: -Dgoal=scm:update multiproject:goal and this doesn't seem to be possible with CC. Just doing scm:update seems to only update the "master" project, which for me is the "maven" project containing my maven build files from which my subprojects extend. Is it possible to do a multiproject scm:update? Perhaps by creating a custom goal in maven.xml? Thanks, Michael Mattox -- 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]
Multiproject CruiseControl - how to do CVS update
I integrated Maven with Cruise Control and everything is working except for the scm:update. I can't find a way to do a multiproject update. Usually I do it like this: -Dgoal=scm:update multiproject:goal and this doesn't seem to be possible with CC. Just doing scm:update seems to only update the "master" project, which for me is the "maven" project containing my maven build files from which my subprojects extend. Is it possible to do a multiproject scm:update? Perhaps by creating a custom goal in maven.xml? Thanks, Michael Mattox -- 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]