Hi,
as far as I remember (CC-2.7.2) you need a composite tag, e.g.
<composite>
<ant antscript="${ant.script}"
antWorkingDir="."
target="cc:resin-stop" />
<ant antscript="${ant.script}"
antWorkingDir="."
target="cc:clean-checkout"
usedebug="false">
<property name="project.home" value="${project.home}"/>
<property name="project.groupId" value="${project.groupId}"/>
<property name="project.artifactId" value="${project.artifactId}"/>
</ant>
<maven2 mvnscript="${maven.script}"
pomfile="${project.home}/${project.groupId}/${project.artifactId}/pom.xml"
goal="${project.maven.targets}">
<property name="JAVA_HOME" value="${project.java.home}"/>
</maven2>
</composite>
Cheers,
Siegfried Goeschl
partha_ctc wrote:
> Hi,
>
> We want to integrate Maven Build Script with Cruise Control, need your help
> and suggestion.
>
> we have a single project with multiple pom.xml files (each doing a distinct
> activity) in separate folders. We want them to be called from the Cruise
> Control in a particular sequence one by one.
> In the process, we are able to do the same for one pom.xml file but not for
> other two pom.xml files in the same project.
>
> I have 2 other pom files. but how to introduce 2 other pom files and to
> execute one by one goal ..as shown in following example.
>
>
> =============================================================================
> Cruise Control config file contain following information:
>
> <project name="testwebappunpack">
> <listeners>
> <currentbuildstatuslistener file="logs/testear/Test.txt">
> </currentbuildstatuslistener>
> </listeners>
> <bootstrappers>
> </bootstrappers>
> <modificationset quietperiod="30">
> <filesystem folder="${project.name}"/>
> </modificationset>
> <schedule interval="60">
> <maven2 mvnhome="D://maven/test maven/maven-2.0.7"
> pomfile="C://webappunpack/pom.xml" goal="generate-resources
> process-resources generate-resources war:war install" />
> <!-- pomfile="C://updateclasspath/pom.xml"
> goal="generate-resources
> jar:jar" -->
> </schedule>
> </project>
> =========================================================================
> So how to introduce more than one pom and their goals in a single project?
>
> Please help me to work out the solution..
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]