Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

 
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?
 
He puts the "turd" in "saturday". Speaking of which, have you smelled this tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic