• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SNAPSHOT dependencies - What if you're building a CVS tag?

 
Dave Boden
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a multi-project setup that I want to "Mavenize". The projects depend on each other. I've specified the dependency versions as SNAPSHOT in each of the project's pom.xml files. This works well when I'm working on the head revision of what I have in CVS.

However, I don't understand how things are going to work when it comes to building an older tagged CVS version of the project. Imagine I have a CVS tag called "PROJ-2005-11-01-v2.1.0". How can I tell Maven that I want to build an older version of the project without going through ALL of my pom.xml files and changing SNAPSHOT to the CVS tag? I've got about 15 projects in all, so frequent manual edits would be unworkable.

Moreover, could anyone please describe how Maven 2 interacts with Source Control systems. Maven 1 has an SCM plugin that allows you to checkout files from CVS. What approach does Maven 2 take?

If I get a good answer to this question, I'll take the time to contribute to the Maven documentation:
http://maven.apache.org/guides/mini/guide-multi-module.html
This document is currently empty...
 
Dave Boden
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like it may be possible to use variable replacement so that I only need to change the version in one place:

http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20filter%20resource%20files?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic