You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by jeff mutonho <ej...@yahoo.com> on 2004/08/17 08:05:27 UTC
Checking projects out of CVS
Hi guys
I checked a project(Project1) without problems from CVS using the following rules in my maven.xml file:
<project default="mycontacts:build-all" xmlns:j="jelly:core" xmlns:m="jelly:maven">
<preGoal name="mycontacts:build-all">
<j:set var="maven.scm.cvs.module">Project1</j:set>
<attainGoal name="scm:cvs-checkout-project"/>
<j:set var="maven.scm.cvs.module">Project2</j:set>
<attainGoal name="scm:cvs-checkout-project"/>
</preGoal>
<goal name="mycontacts:build-all">
<!--m:reactor basedir="${basedir}"
includes="*/project.xml"
goals="mycontacts-dist"
banner="Building Project"
ignoreFailures="false"/-->
</goal>
</project>
I have commented out the rule to checkout Project1 , but not Project2 and my maven.xml file looks as shown below:
<project default="mycontacts:build-all" xmlns:j="jelly:core" xmlns:m="jelly:maven">
<preGoal name="mycontacts:build-all">
<!--j:set var="maven.scm.cvs.module">Project1</j:set-->
<!--attainGoal name="scm:cvs-checkout-project"/-->
<j:set var="maven.scm.cvs.module">Project2</j:set>
<attainGoal name="scm:cvs-checkout-project"/>
</preGoal>
<goal name="mycontacts:build-all">
<!--m:reactor basedir="${basedir}"
includes="*/project.xml"
goals="mycontacts-dist"
banner="Building Project"
ignoreFailures="false"/-->
</goal>
</project>
When I run "maven scm:checkout-project" , Maven is still checking out Project1 instead of Project2.What am I missing here?
jeff mutonho
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
Re: Checking projects out of CVS
Posted by jeff mutonho <ej...@yahoo.com>.
Thanks
It turn out that if I just execute the command "maven" and not "maven scm:checkout-project" , all the modules declared in maven.xml are checked out.
jeff mutonho
Brett Porter <br...@gmail.com> wrote:
you need to use property="maven.scm.cvs.module" value="..." />
On Mon, 16 Aug 2004 23:05:27 -0700 (PDT), jeff mutonho
wrote:
> Hi guys
>
> I checked a project(Project1) without problems from CVS using the following rules in my maven.xml file:
>
>
>
> Project1
>
> Project2
>
>
>
> > includes="*/project.xml"
> goals="mycontacts-dist"
> banner="Building Project"
> ignoreFailures="false"/-->
>
>
>
> I have commented out the rule to checkout Project1 , but not Project2 and my maven.xml file looks as shown below:
>
>
>
> Project1
>
> Project2
>
>
>
> > includes="*/project.xml"
> goals="mycontacts-dist"
> banner="Building Project"
> ignoreFailures="false"/-->
>
>
>
> When I run "maven scm:checkout-project" , Maven is still checking out Project1 instead of Project2.What am I missing here?
>
> jeff mutonho
>
>
> ---------------------------------
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
Re: Checking projects out of CVS
Posted by Brett Porter <br...@gmail.com>.
you need to use <maven:set plugin="maven-scm-plugin"
property="maven.scm.cvs.module" value="..." />
On Mon, 16 Aug 2004 23:05:27 -0700 (PDT), jeff mutonho
<ej...@yahoo.com> wrote:
> Hi guys
>
> I checked a project(Project1) without problems from CVS using the following rules in my maven.xml file:
>
> <project default="mycontacts:build-all" xmlns:j="jelly:core" xmlns:m="jelly:maven">
> <preGoal name="mycontacts:build-all">
> <j:set var="maven.scm.cvs.module">Project1</j:set>
> <attainGoal name="scm:cvs-checkout-project"/>
> <j:set var="maven.scm.cvs.module">Project2</j:set>
> <attainGoal name="scm:cvs-checkout-project"/>
> </preGoal>
> <goal name="mycontacts:build-all">
> <!--m:reactor basedir="${basedir}"
> includes="*/project.xml"
> goals="mycontacts-dist"
> banner="Building Project"
> ignoreFailures="false"/-->
> </goal>
> </project>
>
> I have commented out the rule to checkout Project1 , but not Project2 and my maven.xml file looks as shown below:
>
> <project default="mycontacts:build-all" xmlns:j="jelly:core" xmlns:m="jelly:maven">
> <preGoal name="mycontacts:build-all">
> <!--j:set var="maven.scm.cvs.module">Project1</j:set-->
> <!--attainGoal name="scm:cvs-checkout-project"/-->
> <j:set var="maven.scm.cvs.module">Project2</j:set>
> <attainGoal name="scm:cvs-checkout-project"/>
> </preGoal>
> <goal name="mycontacts:build-all">
> <!--m:reactor basedir="${basedir}"
> includes="*/project.xml"
> goals="mycontacts-dist"
> banner="Building Project"
> ignoreFailures="false"/-->
> </goal>
> </project>
>
> When I run "maven scm:checkout-project" , Maven is still checking out Project1 instead of Project2.What am I missing here?
>
> jeff mutonho
>
>
> ---------------------------------
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
UPDATE: Re: Checking projects out of CVS
Posted by jeff mutonho <ej...@yahoo.com>.
I did a search for all the files under /home/maven , that contain the string "Project1" and realized there's this file /home/maven/.maven/cache/maven-scm-plugin-1.4/plugin.properties , part of which contains the line
# CVS module to check out, required
maven.scm.cvs.module=Project1
Does that mean this file overrides any rules in the maven.xml file?How then do I check out more than one module from CVS?
jeff mutonho
jeff mutonho <ej...@yahoo.com> wrote:
Hi guys
I checked a project(Project1) without problems from CVS using the following rules in my maven.xml file:
Project1
Project2
includes="*/project.xml"
goals="mycontacts-dist"
banner="Building Project"
ignoreFailures="false"/-->
I have commented out the rule to checkout Project1 , but not Project2 and my maven.xml file looks as shown below:
Project1
Project2
includes="*/project.xml"
goals="mycontacts-dist"
banner="Building Project"
ignoreFailures="false"/-->
When I run "maven scm:checkout-project" , Maven is still checking out Project1 instead of Project2.What am I missing here?
jeff mutonho
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
---------------------------------
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.