As I see it, you just described the only solution that works. I may be wrong here, so if any of the maven-programmers think I am: please DO tell me! No matter how you assign the version-numbers, fact remains that maven can not 'automatically' handle branching.
I feel that there should be a plugin that you can tell to 'create a branch from version xxx', which will then create a branch in your SCM (if it supports that, not all of 'em do!), checks out version xxx, updates the version-number to a new SNAPSHOT-version and commit that again. I noticed in the API of the SCM-plugin that it knows the branch-command, it is however not given as a goal on the plugin-page... Maybe it hasn't been released yet, I don't know. I do believe however that the SCM-plugin per default will not do the checkout and updating, so maybe a new plugin for those kind of things is needed? As I just wrote, I hope to get around to some testing and maybe even writing a little bit of plugin next week. I'll keep everyone informed on my progress. On Thursday 26 April 2007 20:24, Trevor Spackman wrote: > I also would be interested to hear how others are using the plugin... This > is how we're using it: > > New development happens on the trunk (and sometimes project branches), > where the pom is 2.1.0-SNAPSHOT. At some point, we're happy (enough) with > it that we create a release branch (e.g. 2.1.x), and run the plugin from > there -- it creates the 2.1.0 tag, does the 2.1.0 deploy, and ups the > version on the release branch to 2.1.1-SNAPSHOT. Future bug-fixes (if any) > are made on the 2.1.x branch and when enough have accumulated, we run the > plugin again, and now the pom is up to 2.1.2-SNAPSHOT. Then we merge the > bug-fixes back down to the trunk. > > The one manual step in our process is updating the pom in the trunk to > 2.2.0-SNAPSHOT after creating the branch. > > Is there a better way? > > Trevor Spackman -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: [EMAIL PROTECTED] Web: www.cfc.at --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]