aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes SNAPSHOT dependencies - What if you're building a CVS tag? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "SNAPSHOT dependencies - What if you Watch "SNAPSHOT dependencies - What if you New topic
Author

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

Dave Boden
Ranch Hand

Joined: Nov 08, 2000
Posts: 37
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

Joined: Nov 08, 2000
Posts: 37
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SNAPSHOT dependencies - What if you're building a CVS tag?