Reputation: 15628
All,
currently I have following maven projects all stored in svn:
Now, I need to create a branch since v3.1 is installed in production and we want to start development for v4.0. I am not sure about he best way to handle this:
This is probably is common situation so I was wondering which procedures are out there...
thanks,
Stijn
Upvotes: 2
Views: 1502
Reputation: 570425
Should I simply create a branch of every project and increase the version?
Something close indeed. Since you have released your PM-Web project (and its dependencies), you need to take a "snapshot" (in case you need to change things) and I would tag each project to do so (don't branch if you don't need to):
With everything in th POM updated accordingly (versions, scm, version in dependencies, etc).
If later you need to fix something on the released version, create a branch from the tagged version, e.g.
Make the fix in the branches and release the new version (and retag).
And development of the next version occurs in the trunk (note that nothing forces you to do any change in the incremented version of Common-Test nor to release it if you don't need to, but since you released the previous version, the version in the trunk should be changed):
For your information, the Maven Release Plugin can help to automate these steps.
In svn: should I group the 3 projects into 1 remote folder and create a branch of that folder?
I don't think so. Your projects seems to have separated life-cycle so it makes sense in my opinion to have separate modules (i.e. separate hierarchy with separate trunk/tags/branches) for them.
Upvotes: 3