I think this question should go to the CruiseControl mailing list, but it's
easy, so I'll just drop some XML for you:

  <project name="something-nightly">
    <bootstrappers>
      <currentbuildstatusbootstrapper
file="logs/something-nightly/currentbuildstatus.txt"/>
      <cvsbootstrapper
       cvsroot=":pserver:[EMAIL PROTECTED]:/export/CVS"
       file="something/project.xml"/>
    </bootstrappers>
    <modificationset requireModification="true">
      <cvs localWorkingCopy="something/"
cvsroot=":pserver:[EMAIL PROTECTED]:/export/CVS">
      </cvs>
    </modificationset>
    <schedule>
      <maven goal="clean scm:update-project java:compile jar:deploy-snapshot
site:deploy" projectfile="/somefolder/something/project.xml"
mavenscript="/usr/maven/bin/maven" time="2300">
      </maven>
    </schedule>
    <publishers>
      <currentbuildstatuspublisher
file="/somefolder/logs/something-nightly/currentbuildstatus.txt">
      </currentbuildstatuspublisher>
      <htmlemail logdir="/somewhere/projects/logs/something-nightly"
mailhost="smtp.somemailserver.com"
css="/usr/cruise/reporting/jsp/css/cruisecontrol.css"
subjectprefix="[BUILD]" returnaddress="[EMAIL PROTECTED]"
defaultsuffix="@somewhere.com" skipusers="true"
xsldir="/usr/cruise/reporting/jsp/xsl"
buildresultsurl="http://somewhere.com/something/index.html";>
        <always address="[EMAIL PROTECTED]"/>
      </htmlemail>
    </publishers>
  </project>

This configuration will build the project every night at 11 pm.  It is
bootstrapped so that the project.xml is updated before the build actually
takes place.  Then, it uses maven to update the entire project, compile it,
deploy a snapshot jar and then deploy a generated website.  Then an email is
sent to you notifying you of the status of the build.  Hope that helps.

-----Original Message-----
From: Raphael Philipe Mendes da Silva [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 10, 2004 5:00 AM
To: Maven Users List (E-mail)
Subject: Cruise Control Integration

    Someone have some examples of using Cruise Control with Maven in a
multiproject project?
    I'm loking for Cruise Control because of it features, like e-mail and
Reports.
    Someone can help me?
    Thanks,

Raphael Philipe Mendes da Silva
DSB - Diretoria de Soluções em Billing
CPqD Telecom & IT Solutions
Tel.: +55 19 3705-6957
www.cpqd.com.br
[EMAIL PROTECTED]


---------------------------------------------------------------------
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