File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Checking out projects from CVS using Maven Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Checking out projects from CVS using Maven" Watch "Checking out projects from CVS using Maven" New topic
Author

Checking out projects from CVS using Maven

jeff mutonho
Ranch Hand

Joined: Apr 30, 2003
Posts: 271
How do I check out multiple projects using Maven?I configured my maven.xml
file as shown below:


<project default="mycontacts:build-all" xmlns:j="jelly:core"
xmlns:m="jelly:maven">
<preGoal name="checkout-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>

but only Project1 is checked out when I run "maven scm:checkout-project".I realized that this could be due to the line

# CVS module to check out, required
maven.scm.cvs.module=Project1

in my /home/maven/.maven/cache/maven-scm-plugin-1.4/plugin.properties

which seems to override the preGoals i defined in the maven.xml file.How do I configure Maven to check-out multiple projects (from CVS) at a time ?

jeff mutonho
 
 
subject: Checking out projects from CVS using Maven
 
Threads others viewed
Migrating Jelly Scripts (Maven 1) to Plugins (Maven 2)
How to make mavenide work with minimal project?
Maven javadoc problems
[Maven] Nice HTML test-reports
Maven - two artifacts sharing source code
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture