|
| Home > Apache Geronimo Project Management > Documentation > Apache Geronimo Development Process > Release Branching Process |
Once a new branch is created you will generally need to manage the version number in the poms. The following Perl scripts will assist in that task. It could use some polishing but given the relatively infrequent use.
perl -i.orig -pe '
$done = 0 if /<?xml/;
$inParent = 1 if not $done and /<parent>/;
s,oldVersion</version>,newVersion</version>, if $inParent and not $done;
$done = $inParent = 1 if /<\/parent>/;
' $(find GeronimoDirectory -name pom.xml | grep -v "GeronimoDirectory/pom.xml")
Remember to properly escape periods in the oldVersion. For instance, to change 1.1.1-SNAPSHOT to 1.1.1 you would have
perl -i.orig -pe '
$done = 0 if /<?xml/;
$inParent = 1 if not $done and /<parent>/;
s,1\.1\.1-SNAPSHOT</version>,1.1.1</version>, if $inParent and not $done;
$done = $inParent = 1 if /<\/parent>/;
' $(find GeronimoDirectory -name pom.xml | grep -v "GeronimoDirectory/pom.xml")
We create a branch at freeze time for the following reasons:
<profile>
<id>staging</id>
<properties>
<!-- deploy.altRepository>prasad::default::scp://people.apache.org/x1/home/prasad/public_html/2.0-M1-rc1</deploy.altRepository -->
<deploy.altRepository>prasad::default::file://c:\cygwin\home\prasad\releases</deploy.altRepository>
<gpg.passphrase>Your GPG Passphrase</gpg.passphrase>
</properties>
</profile>
svn mv SRC-URL DEST-URL -m "Reason for this commit".
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/geronimo/specs/tags/geronimo-servlet_2.5_spec-1.1</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/geronimo/repos/asf/geronimo/specs/tags/geronimo-servlet_2.5_spec-1.1</developerConnection>
<url>http://svn.apache.org/viewvc/geronimo/repos/asf/geronimo/specs/tags/geronimo-servlet_2.5_spec-1.1</url>
</scm>
mvn -Pdefault,staging deploy
find . -name *.asc.* | xargs rm -f tar -zcvf release.tar.gz releases
gunzip foo.tar.gz tar -xvf foo.tar
| Ensure that the files you copy to the rsynch directoory have 0775 dir permission and a 0664 file permisison set on them |
svn mv SRC-URL DEST-URL -m "Reason for this commit".
The process in this document was voted on by the Geronimo community. Please formally propose all changes to dev@geronimo.apache.org.
See: