Integarting Maven with Cruise control
Cruise control can be integrated with Maven .
- Download cruise control
- move your maven project to projects folder
- set maven home and java home
- update the config.xml file
- run the cruise control.bat file
- config.xml is shown below:
<cruisecontrol>
<project name="sample-spring-ws">
<listeners>
<currentbuildstatuslistener file="logs/${project.name}/status.txt"/>
</listeners>
<bootstrappers>
<!-- <antbootstrapper anthome="apache-ant-1.7.0" buildfile="projects/${project.name}/build.xml" target="clean" />-->
</bootstrappers>
<modificationset quietperiod="30">
<!-- touch any file in connectfour project to trigger a build -->
<filesystem folder="projects/${project.name}"/>
</modificationset>
<schedule interval="300">
<!--<ant anthome="apache-ant-1.7.0" buildfile="projects/${project.name}/build.xml"/>-->
<maven2 mvnhome="E://maven" pomfile="projects/${project.name}/pom.xml" goal="compile clean install" />
</schedule>
<log>
<merge dir="projects/${project.name}/target/test-results"/>
</log>
<publishers>
<onsuccess>
<artifactspublisher dest="artifacts/${project.name}" file="projects/${project.name}/target/sample-spring-ws-1.0.0-SNAPSHOT.war"/>
</onsuccess>
</publishers>
</project>
</cruisecontrol>
Download the tutorial for integrating maven with cruise control
https://docs.google.com/open?id=0Bw0JiVGLs_kURTVWUmcwU1FTWnU1dl96aGdZcTdQQQ
Comments
Post a Comment