Hi all,
 
I have been playing with maven2 release plugin and wanted to get insight from 
the community. The following link was very useful in getting a setup going: 
http://jlorenzen.blogspot.com/2007/09/how-to-create-release-using-maven2.html.
 
However there is still a gray area into how branching/merging would fit in the 
picture. In my model I use release:branch plugin to create a branch whenever a 
release is ready for staging/production.
 
I do:

mvn release:branch -DupdateBranchVersions=true

when prompted I provide 1.0 version for the branch and 2.0-SNAPSHOT for next 
working version. The branch is getting created in CVS and pom files are updated 
appropriately.

Now let's say I need to apply a bugfix to my branch.
 
1. I checkout branch in a separate workspace. I apply fixes check them in to 
the branch. I create a tag say: 1_0_branch_fix1. At this point should I update 
the pom files in the branch to something like 1.0.fix1 ? Afaik there is no 
automated process for this in maven2.

2. Now I released 1_0_branch_fix1 with release:perform plugin using -Dtag and 
-DconnectionUrl option (no need for release.properties)

3. Merge back fix in the trunk. This process is not done through maven.

Let me know how you guys tackle this problem, I guess the only missing piece in 
my process is the update of the pom files in the branch when doing a bugfix 
release. Today I have to update this manually.

Regards,
-Guillaume





____________________________________________________________________________________________________
This electronic mail (including any attachments) may contain information that 
is privileged, confidential, and/or otherwise protected from disclosure to 
anyone other than its intended recipient(s). Any dissemination or use of this 
electronic email or its contents (including any attachments) by persons other 
than the intended recipient(s) is strictly prohibited. If you have received 
this message in error, please notify us immediately by reply email so that we 
may correct our internal records. Please then delete the original message 
(including any attachments) in its entirety. Thank you.

Reply via email to