Integarting Maven with Cruise control


Cruise control can be integrated with Maven .
  1. Download cruise control
  2.  move your maven project to projects folder
  3. set maven home and java home
  4. update the config.xml file
  5. run the cruise control.bat file
  6. 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

Popular posts from this blog

defining functions clojure

Integrating Struts2 with Spring Security using Custom Login Form