A significant amount of effort was spent on getting CruiseControl to work some what properly with
maven2, producing reports and JavaDocs. Two things that require configuration:
- config.xml for CruiseControl
- pom.xml - a project definition file
See more details below
config.xml
<cruisecontrol><!-- Load environment variables -->
<property environment="env" toupper="true"/><!-- Commonly used directories -->
<property name="projectdir" value="${env.CCDIR}/projects/PRO/Projects/${project.name}"/>
<property name="testdir" value="${projectdir}/target/surefire-reports"/><!--*****************************************************************************************************-->
<project name="PROJBusiness" buildafterfailed="false">
<listeners>
<currentbuildstatuslistener file="logsPROJBusinessstatus.txt" />
</listeners>
<bootstrappers>
<p4bootstrapper view="//****/HEAD/WEB_APPLICATIONS/PROJ/Projects/PROJBusiness..." port="10.10.51.13:1666" user="codebuilder" passwd="password" client="granitebuilder" >
</p4bootstrapper>
</bootstrappers>
<schedule interval="60">
<maven2 mvnscript="d:mavenbinmvn.bat" pomfile="D:CruiseControlprojectsPROJProjectsPROJBusinesspom.xml" goal="clean install|site -Dmaven.test.skip=true" /><!--|site -fn>site.log-->
</schedule>
<publishers>
<artifactspublisher dir="projectsPROJProjectsPROJBusinesstarget" dest="logsPROJBusiness">
</artifactspublisher>
<currentbuildstatuspublisher file="logsPROJBusinessstatus.txt" />
<email returnaddress="codebuilder@mail.com" defaultSuffix="" buildResultsURL="http://granite:8787/cruisecontrol/buildresults/PROJBusiness" mailHost="fe1psb1.i.fmedr.com">
<failure reportWhenFixed="true" address="PROJDevelopers@mail.com" />
</email>
</publishers>
<modificationset quietperiod="60">
<p4 client="codebuilder" port="10.10.10.13:1666" user="codebuilder" passwd="C0deBu1lder" view="//****/HEAD/WEB_APPLICATIONS/PROJ/Projects/PROJBusiness..." />
</modificationset>
<plugin name="currentbuildstatusbootstrapper" classname="net.sourceforge.cruisecontrol.bootstrappers.CurrentBuildStatusBootstrapper" />
<log dir="D:CruiseControllogsPROJBusiness" >
<merge dir="D:CruiseControlprojectsPROJProjectsPROJBusinesstargetsurefire-reports"/>
<delete every="3" unit="MONTH" ignoreSuffix="true"/>
</log>
</project>
</cruisecontrol>
pom.xml
<reporting>
<plugins>
<!--plugin>
<artifactId>maven-surefire-plugin</artifactId>
</plugin-->
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jxr-maven-plugin</artifactId>
</plugin>
<!--plugin>
<artifactId>maven-clover-plugin</artifactId>
</plugin-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>taglist-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
</plugin>
<!--plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>changes-maven-plugin</artifactId>
</plugin-->
</plugins>
</reporting>
<ciManagement>
<system>CruiseControl</system>
<url>
http://host:8787</url>
<notifiers>
<notifier>
<type>mail</type>
<address>amelchenko@***.com</address>
</notifier>
</notifiers>
</ciManagement>