diff options
Diffstat (limited to 'site/trunk/site-publish/documentation-2x/making-releases.html')
-rw-r--r-- | site/trunk/site-publish/documentation-2x/making-releases.html | 718 |
1 files changed, 718 insertions, 0 deletions
diff --git a/site/trunk/site-publish/documentation-2x/making-releases.html b/site/trunk/site-publish/documentation-2x/making-releases.html new file mode 100644 index 0000000000..7afa58581f --- /dev/null +++ b/site/trunk/site-publish/documentation-2x/making-releases.html @@ -0,0 +1,718 @@ + + + + + + +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<HTML> + <HEAD> + <META name="description" content="Apache Tuscany"> + <META name="keywords" content="apache, apache tuscany, tuscany, service, services, fabric, soa, service oriented architecture, sca, service component architecture, das, sdo, csa, ruby, opensource"> + + <LINK type="text/css" rel="stylesheet" href="http://tuscany.apache.org/stylesheets/default.css"> + <LINK rel="SHORTCUT ICON" href="https://cwiki.apache.org/confluence/display/TUSCANYxDOCx2x/$images/favicon.ico"> + <TITLE>Making Releases : Apache Tuscany</TITLE> + <META http-equiv="Content-Type" content="text/html;charset=UTF-8"></HEAD> + + <STYLE> + .spacetree * ul { + padding-left:0px; + margin-left: 0px; + } + .spacetree * li { + margin-left: 5px; + padding-left:5px; + } + </STYLE> + + <BODY onload="init()"> + <!-- topNav --> + <TABLE border="0" cellpadding="2" cellspacing="0" width="100%"> + <TR class="topBar"> + <TD align="left" valign="middle" class="topBarDiv" align="left" nowrap=""> + <A href="https://cwiki.apache.org/geronimo"> Home</A> > <A href="index.html" title="Apache Tuscany Docs 2.x">Apache Tuscany Docs 2.x</A> > <A href="index.html" title="Index">Index</A> > <A href="" title="Making Releases">Making Releases</A> + </TD> + <TD align="right" valign="middle" nowrap=""> + <FORM name="search" action="http://www.google.com/search" method="get"> + <INPUT type="hidden" name="ie" value="UTF-8"> + <INPUT type="hidden" name="oe" value="UTF-8"> + <INPUT type="hidden" name="domains" value=""> + <INPUT type="hidden" name="sitesearch" value=""> + <INPUT type="text" name="q" maxlength="255" value=""> + <INPUT type="submit" name="btnG" value="Google Search"> + </FORM> + </TD> + </TR> + </TABLE> + + + <TABLE border="0" cellpadding="2" cellspacing="0" width="100%"> + <TR class="topBar"> + <TD align="left" valign="middle" class="topBarDiv" nowrap="true" width="100%"> + <A href="index.html" title="Apache Tuscany Docs 2.x">Apache Tuscany Docs 2.x</A> > <A href="index.html" title="Index">Index</A> > <A href="" title="Making Releases">Making Releases</A> + </TD> + + <TD align="right" valign="middle" class="topBarDiv" align="left" nowrap="true"> + <A href="http://tuscany.apache.org/">Tuscany Home</A> | <A href="http://mail-archives.apache.org/mod_mbox/tuscany-user">User List</A> | <A href="http://mail-archives.apache.org/mod_mbox/tuscany-dev">Dev List</A> | <A href="http://issues.apache.org/jira/browse/Tuscany">Issue Tracker</A> + </TD> + </TR> + </TABLE> + + <TABLE border="0" cellpadding="0" width="100%" bgcolor="#FFFFFF"> + <TR> + <TD valign="top" align="left" width="22%" bgcolor="#F9F9F9" class="noprint"> + <DIV class="tabletitle">Table of Contents</DIV> + <DIV class="spacetree"> + + + </DIV> + </TD> + <TD align="left" valign="top" width="78%"> + <!-- pageContent --> + <DIV id="PageContent"> + <DIV class="pageheader" style="padding: 6px 0px 0px 0px;"> + <!-- We'll enable this once we figure out how to access (and save) the logo resource --> + <!--img src="http://geronimo.apache.org/images/confluence_logo.gif" style="float: left; margin: 4px 4px 4px 10px;" border="0"--> + <DIV style="margin: 0px 10px 0px 10px" class="smalltext">Apache Tuscany Docs 2.x</DIV> + <DIV style="margin: 0px 10px 8px 10px" class="pagetitle">Making Releases</DIV> + + <DIV class="greynavbar" align="right" style="padding: 2px 10px; margin: 0px;"> +<!-- --> + <A href="https://cwiki.apache.org/confluence/pages/editpage.action?pageId=21791342"> + <IMG src="http://geronimo.apache.org/images/icons/notep_16.gif" height="16" width="16" border="0" align="absmiddle" title="Edit Page"></A> + <A href="https://cwiki.apache.org/confluence/pages/editpage.action?pageId=21791342">Edit Page</A> + + <A href="https://cwiki.apache.org/confluence/pages/listpages.action?key=TUSCANYxDOCx2x"> + <IMG src="http://geronimo.apache.org/images/icons/browse_space.gif" height="16" width="16" border="0" align="absmiddle" title="Browse Space"></A> + <A href="https://cwiki.apache.org/confluence/pages/listpages.action?key=TUSCANYxDOCx2x">Browse Space</A> + + <A href="https://cwiki.apache.org/confluence/pages/createpage.action?spaceKey=TUSCANYxDOCx2x&fromPageId=21791342"> + <IMG src="http://geronimo.apache.org/images/icons/add_page_16.gif" height="16" width="16" border="0" align="absmiddle" title="Add Page"></A> + <A href="https://cwiki.apache.org/confluence/pages/createpage.action?spaceKey=TUSCANYxDOCx2x&fromPageId=21791342">Add Page</A> + + <A href="https://cwiki.apache.org/confluence/pages/createblogpost.action?spaceKey=TUSCANYxDOCx2x&fromPageId=21791342"> + <IMG src="http://geronimo.apache.org/images/icons/add_blogentry_16.gif" height="16" width="16" border="0" align="absmiddle" title="Add News"></A> + <A href="https://cwiki.apache.org/confluence/pages/createblogpost.action?spaceKey=TUSCANYxDOCx2x&fromPageId=21791342">Add News</A> +<!-- --> + </DIV> + </DIV> + + <DIV class="pagecontent"> + <DIV class="wiki-content"> + <TABLE class="sectionMacro" border="0" cellpadding="5" cellspacing="0" width="100%"><TBODY><TR> +<TD class="confluenceTd" valign="top" width="15%"> +<DIV class="error"><SPAN class="error">Unable to render {include}</SPAN> Couldn't find a page to include called: <A href="https://cwiki.apache.org/confluence/pages/createpage.action?spaceKey=TUSCANYxDOCx2x&title=Menus&linkCreation=true&fromPageId=21791342" class="createlink">Menus</A></DIV></TD> +<TD class="confluenceTd" valign="top" width="85%"> + +<H3><A name="MakingReleases-GettingReady"></A>Getting Ready</H3> + +<P><A href="setting-up-ssh.html" title="Setting up ssh">Setting up ssh</A></P> + +<P><A href="create-signing-key.html" title="Create Signing Key">Create Signing Key</A></P> + +<P><A href="get-hold-of-rat.html" title="Get hold of RAT">Get hold of RAT</A></P> + +<H3><A name="MakingReleases-UsefulResources"></A>Useful Resources</H3> + +<P><A href="http://incubator.apache.org/guides/releasemanagement.html#best-practice" class="external-link" rel="nofollow">Incubator release best practice </A><BR> +<A href="http://incubator.apache.org/incubation/Incubation_Policy.html" class="external-link" rel="nofollow">Incubator Policy </A><BR> +<A href="http://www.apache.org/dev/" class="external-link" rel="nofollow">ASF Developer Guide </A><BR> +<A href="http://www.apache.org/dev/release.html" class="external-link" rel="nofollow">ASF Release FAQ </A><BR> +<A href="http://www.apache.org/dev/release.html#license" class="external-link" rel="nofollow">ASF Release Licensing FAQ </A><BR> +<A href="http://www.apache.org/dev/release-signing.html" class="external-link" rel="nofollow">ASF Release Signing </A><BR> +<A href="http://www.apache.org/dev/new-committers-guide.html#pgp" class="external-link" rel="nofollow">ASF Comitters Guide </A><BR> +<A href="http://people.apache.org/~henkp/" class="external-link" rel="nofollow">Henk's ASF Key Guide </A><BR> +<A href="http://pgp.surfnet.nl/" class="external-link" rel="nofollow">Surfnet Key Server </A><BR> +<A href="http://pgp.mit.edu/" class="external-link" rel="nofollow">MIT Key Server </A><BR> +<A href="http://svn.apache.org/repos/asf/tuscany/java/etc/release-sca.sh" class="external-link" rel="nofollow">Raymond's release script</A></P> + +<H3><A name="MakingReleases-ReleaseReviewerCheckList"></A>Release Reviewer Check List</H3> + +<P><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> Check that all RELEASE-NOTES and READMEs etc have the right release number and date<BR> +<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> Check that the RAT output doesn't report missing or non-ASF licenses other than for files that can't have ASF licenses.<BR> +<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> Check that all files (that need it) have the ASF copyright and it's the right date<BR> +<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> Check that the LICENSE and NOTICE files appear at the top level of source distro<BR> +<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> Check that the LICENSE and NOTICE files appear at the top level of binary distro<BR> +<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> Check that the LICENSE and NOTICE files appear at the top level of all maven modules that will be distributed (these are the tricky ones as they get copied when people add new modules)<BR> +<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> Check that LICENSE files have a copy of all third party licenses for the files in directories below them (jar name and version to which license relates must be clearly marked. Use the list from the distribution lib dir)<BR> +<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> Check that NOTICE files have a copy of all of the copyright statements for the files in directories below them. You have to go through all dependency jars/files that have been copied in and check<BR> +<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> Check that the signatures are in the right format<BR> +<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> Check that the signing key is in the KEYS file and in an external repo<BR> +<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> Check that there are no SNAPSHOT dependencies still in the distribution<BR> +<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> Check that there is no junk left in the distributions (.log, .tmp, .bak etc)<BR> +<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> Check that the distribution match the tag as far as possible. (Our NOTICE files have the module name dropped in automatically so don't match and we don't ship svg files)<BR> +<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> Check that the manifests in the jars that we produce have enough information (name of product and version. Scripts below should do this).<BR> +<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> Check that the project depends on the smallest number of versions of each third party jar<BR> +<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> Check that all samples compile and run from the command line and where appropriate operate correctly in Tomcat/WebSphere/Jetty/Geronimo<BR> +<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> Check that all demos compile and run from the command line and where appropriate operate correctly in Tomcat/WebSphere/Jetty/Geronimo<BR> +<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> Check to make sure Javadocs are generated for APIs and SPIs.</P> + +<H3><A name="MakingReleases-ReleaseManagerReleaseProcess"></A>Release Manager Release Process</H3> + +<P>This page borrows many of the commands from <A href="http://svn.apache.org/repos/asf/tuscany/java/etc/release-sca.sh" class="external-link" rel="nofollow">Raymond's release script</A> but with a bit more explanation and a few extra useful commands. The commands here were taken from when release 1.1 RC3a was under preparation. Note that this document has been updated from experience gained with the SDO 1.1.1 release, which was the first release made after exiting incubation; as such, whilst the release names used in this document refer to an "incubating" version, the svn repository and the maven repository have been updated to the non incubating versions. It's also fair to say that it's unlikely that you will want to run all of these commands in sequence as you generally end up repeating sections as release preparation progresses.</P> + +<H4><A name="MakingReleases-Callforreleases"></A>Call for releases</H4> + +<P>(Note that the maven tuscany plugin will most likely need to be released in parallel with the Tuscany release)</P> + +<P>At some point someone in the community will call for a release based on the features and fixes that have been under development in the trunk. Typically the first stage in the release process is to decide on who is going to be the release manager, i.e. who is going to ensure that all the steps are taken to ensure a good release. This will typical involve someone volunteering and a vote on the dev list. The next thing is the create a branch where the code can be stabilized and testing can start on the release artifacts. It's useful to try and ensure that the code is complete as possible and that all the samples run before the branch is created. This removes the need for a lot of double fixing between the branch and the trunk.</P> + +<P>The commands in this document make use of the following environment variables, and are written in a form suitable for execution in linux or a cygwin shell on windows. If you set up these variables you should be able to just cut and paste the commands as given throughout this document.</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +export RELEASE=2.0-M5 +export RC=RC3 + +export CURRENT_TRUNK_LEVEL=2.0-SNAPSHOT +export NEXT_TRUNK_LEVEL=2.0-SNAPSHOT + +export RATJAR=~/apache-rat-0.7-SNAPSHOT.jar +export SCPCOMMAND=scp +export PAOUSER=kelvingoodson +export PASSPHRASE=your_pao_authentication_pass_phrase +</PRE> +</DIV></DIV> + +<H4><A name="MakingReleases-Createthebranch"></A>Create the branch</H4> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +svn copy https:<SPAN class="code-comment">//svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/ https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/branches/sca-java-$RELEASE -m <SPAN class="code-quote">"Branch <SPAN class="code-keyword">for</SPAN> $RELEASE"</SPAN></SPAN> +</PRE> +</DIV></DIV> + +<P>Once the branch is created, if the current and next trunk version differ, the version number in trunk can be updated. If the release is a milestone release the trunk version will not change.</P> + +<H4><A name="MakingReleases-Fixupthebranchwork"></A>Fix up the branch work</H4> + +<P>First checkout the branch so that you can work on it. These commands assume that a local directory called "branches" is present.</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd branches +svn co https:<SPAN class="code-comment">//svn.apache.org/repos/asf/tuscany/sca-java-2.x/branches/sca-java-$RELEASE ./$RELEASE</SPAN> +</PRE> +</DIV></DIV> +<P>Remove all the files that are not going to be part of the release, test all the samples and check all of the LICENSE and NOTICE files.</P> + +<P>Check dependencies are as you would expect them to be. In particular check that we aren't depending on many different versions of third part jars. If we are this has the side effect of messing up the generated build files. If module A depends on x.jar v1.2 and module B depends on x.jar v1.3 then when a build file that is generated for a sample that only depends on module A the stated x.jar dependency will be v1.2. Of course the distribution build will make sure that only v1.3 is actually shipped and so the ant build will fail. (TODO - need better automation)</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd sca +mvn \-o \-Pdependencies \-Dmaven.test.skip=<SPAN class="code-keyword">true</SPAN> +find . \-name dependency.txt \-exec cat '{}' >> deptotal.txt \; +</PRE> +</DIV></DIV> +<P>or</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd sca +mvn dependency:tree +</PRE> +</DIV></DIV> +<P>Use you favorite spreadsheet tool to open deptotal.txt and order on the first column to see across the project what dependencies we have on what libraries/versions.</P> + +<P>Once the branch is at the stage where a release candidate can be created for testing prepare to make a tag.</P> + +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>"Tip"</B><BR>When making changes to a branch or tag that are also relevant to the trunk, it's much easier to apply the changes to the trunk at the time, rather than wait and risk losing the changes. Svn provides a simple one line way to do this with the "svn merge" command. In the root directory of a checked out version of the trunk, if you run a command like the following ... + + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +svn merge \-r 674473:674474 https:<SPAN class="code-comment">//svn.apache.org/repos/asf/tuscany/sca-java-2.x/branches/sca-java-2.0-M5 2.0-M5-RC2</SPAN> +</PRE> +</DIV></DIV> +<P>Note how the version numbers in the n:m differ by one, so that you get just the difference in repository state from immediately before the change in question, to the state in question, merged into the file system in the target location (final argument)</P> + + +<P>then that will apply the same edits as were made in the 674474 commit in the tag; merging them into your checked out version of the current trunk. The earlier you do this, the less likely that svn will present you with conflicts to resolve.</P></TD></TR></TABLE></DIV> + +<H4><A name="MakingReleases-CreateTag%24RELEASE%24RC"></A>Create Tag $RELEASE-$RC</H4> + +<P>These commands assume that a local directory called "tags" is present.</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd tags +svn co https:<SPAN class="code-comment">//svn.apache.org/repos/asf/tuscany/sca-java-2.x/branches/sca-java-$RELEASE $RELEASE-$RC</SPAN> +</PRE> +</DIV></DIV> +<P>Notice that all we are doing here is just checking out the branch again. This allows any last minute fixes to be taken from the branch in subversion and allows the version numbers in the tag to be corrected without affecting the branch, assuming that more than one tag will be required to complete the release process.</P> + +<H4><A name="MakingReleases-Fixthereleasedates"></A>Fix the release dates</H4> + +<P>In various files under distribution/src/main/release the month of release is quoted. Fix this to be the expected release month.</P> + +<H4><A name="MakingReleases-Checkthenoticedates"></A>Check the notice dates</H4> + +<P>It's not clear what the policy for dates in notice files is currently. We have gone for the following...</P> + +<P>Copyright (c) 2005 - 2010 The Apache Software Foundation</P> + +<P>As the project moves forward we need to check that the last date matches the current year. If you need to change all the notice files here's a script</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +<SPAN class="code-keyword">for</SPAN> i in `/usr/bin/find . \-name <SPAN class="code-quote">"NOTICE"</SPAN>`; <SPAN class="code-keyword">do</SPAN> sed <SPAN class="code-quote">"s/Copyright (c) 2005 - 2008/Copyright (c) 2005 - 2009/g"</SPAN> $i >/tmp/tmp.notice; cp /tmp/tmp.notice $i; done +</PRE> +</DIV></DIV> + +<H4><A name="MakingReleases-ChangetheversionID"></A>Change the version ID</H4> + +<P>The "-SNAPSHOT" is removed from the end of the version string. This ensures that the only thing building with the release version number on your PC is the tag being tested.</P> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd tags/2.0-M5-RC2 +<SPAN class="code-keyword">for</SPAN> i in `/usr/bin/find . \-name <SPAN class="code-quote">"*.xml"</SPAN> \-o \-name <SPAN class="code-quote">"*.java"</SPAN>`; <SPAN class="code-keyword">do</SPAN> <SPAN class="code-keyword">if</SPAN> grep $RELEASE-SNAPSHOT $i>/dev/<SPAN class="code-keyword">null</SPAN>; then sed <SPAN class="code-quote">"s/$RELEASE-SNAPSHOT/$RELEASE/g"</SPAN> $i >/tmp/tmp.txt; cp /tmp/tmp.txt $i; echo $i; fi; done +</PRE> +</DIV></DIV> + + + +<H4><A name="MakingReleases-Buildfromtoplevel"></A>Build from top level</H4> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd tags/$RELEASE-$RC +mvn -o clean install +</PRE> +</DIV></DIV> + +<H4><A name="MakingReleases-Builddistribution"></A>Build distribution</H4> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd tags/$RELEASE-$RC/distribution/all +mvn -Psource +mvn +</PRE> +</DIV></DIV> + +<H4><A name="MakingReleases-Copythedistributiontosomewhereandtryit"></A>Copy the distribution to somewhere and try it</H4> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd tags/$RELEASE-$RC/distribution/all/target +cp apache-tuscany-sca-all-$RELEASE.zip <someplace> +cp apache-tuscany-sca-all-$RELEASE-src.zip <someotherplace> +</PRE> +</DIV></DIV> +<P>Try all the samples/demos</P> + +<P>The war samples are currently to be tested with</P> + +<UL class="alternate" type="square"> + <LI>Tomcat 5.5.20 and Tomcat 6.0.14</LI> + <LI>Jetty 6.1.3</LI> + <LI>Geronimo 2.0.2 Tomcat6 jee5</LI> + <LI>WebSphere 6.1 fix pack 9+</LI> +</UL> + + +<P>Clean you local repo of SCA modules and compile the source distro and run some samples. As you will have deleted the maven-tuscany-plugin artifact, you'll need to do a 3 part manual maven build, building in the modules directory, then the maven directory, and finally the samples directory.</P> + +<P>Check for copyrights in the code to ensure that are what you are expecting</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +grep \-iR \--exclude=LICENSE \--exclude=NOTICE Copyright * \| awk '{<SPAN class="code-keyword">if</SPAN> (\!match($0, <SPAN class="code-quote">".+ASF.+"</SPAN>)) {print $0}}' +</PRE> +</DIV></DIV> +<P>check all the NOTICE files</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +<SPAN class="code-keyword">for</SPAN> i in `find . \-name NOTICE`; <SPAN class="code-keyword">do</SPAN> echo XXXXXXXXXXXXXXXXXXXXXXXXXXXX; echo $i; cat $i; done > ../tmp +</PRE> +</DIV></DIV> +<P>Check for any SNAPSHOTS left in by mistake</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +grep \-r \--include=*.xml SNAPSHOT * +</PRE> +</DIV></DIV> +<P>Check the LICENSE file against what is provided in the distributions. There is no automation for this bit.</P> + + +<P>Check that all jars in the distribution\lib is mentioned on the binary LICENSE</P> + + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +<SPAN class="code-keyword">for</SPAN> fn in `find . -name <SPAN class="code-quote">"*.jar"</SPAN> \-printf <SPAN class="code-quote">"%f\n"</SPAN>`; <SPAN class="code-keyword">do</SPAN> <SPAN class="code-keyword">if</SPAN> grep \-q $fn ../LICENSE; then <SPAN class="code-quote">"-"</SPAN>; <SPAN class="code-keyword">else</SPAN> <SPAN class="code-quote">"$fn NOT present"</SPAN>; fi; done; +</PRE> +</DIV></DIV> +<P>And check that all jars that are mentioned are present</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +<SPAN class="code-keyword">for</SPAN> fn in `awk '/.jar/ {<SPAN class="code-keyword">if</SPAN> (match($0,<SPAN class="code-quote">"[a-zA-Z0-9._\-|a-zA-Z0-9._-]+[.]jar"</SPAN>)) {print substr($0, RSTART,RLENGTH) } }' ../LICENSE`; <SPAN class="code-keyword">do</SPAN> <SPAN class="code-keyword">if</SPAN> ls * \| grep -q $fn; then echo <SPAN class="code-quote">"-"</SPAN>;<SPAN class="code-keyword">else</SPAN> echo <SPAN class="code-quote">">>> $fn NOT present"</SPAN>; fi; done +</PRE> +</DIV></DIV> +<P>Check for junk included by accident</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +find . \-name log \-print +find . \-name work \-print +find . \-name lck \-print +find . \-name activemq-data \-print +find . \-name temp \-print +find . \-name tmp \-print +</PRE> +</DIV></DIV> + +<H4><A name="MakingReleases-GeneratetheRATreports"></A>Generate the RAT reports</H4> + +<P>Unpack a binary and source distribution archive and create rat reports for each.</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +java \-jar $RATJAR srcExtractionDir > rat-$RELEASE-$RC-src.txt +java \-jar $RATJAR binExtractionDir > rat-$RELEASE-$RC-bin.txt +</PRE> +</DIV></DIV> +<P>Copy the reports up onto the staging repo. You should of course check the report at this stage.</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +$SCPCOMMAND rat-$RELEASE-$RC.txt $PAOUSER@people.apache.org:public_html/sca-java/$RELEASE/$RC/ +</PRE> +</DIV></DIV> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>"Tip"</B><BR>If you need to regenerate the RAT report after you have started on the steps that follow run "mvn clean" first to avoid complains about the files under target folders</TD></TR></TABLE></DIV> + +<P>Once you are happy with the release artifacts you can sign them and make them available from review.</P> + +<H4><A name="MakingReleases-Signtheartifacts"></A>Sign the artifacts</H4> + +<P>Linux</P> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd tags/$RELEASE-$RC/distribution/target +<SPAN class="code-keyword">for</SPAN> i in *.zip *.gz; <SPAN class="code-keyword">do</SPAN> gpg --output $i.asc --detach-sig --armor $i; done +<SPAN class="code-keyword">for</SPAN> i in *.zip *.gz; <SPAN class="code-keyword">do</SPAN> openssl md5 -hex $i \| sed 's/MD5((**[\^)|]*))= ([0-9a-f|0-9a-f]\*)/\2 \*\1/' > $i.md5; done +</PRE> +</DIV></DIV> + +<P>Windows:</P> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +<SPAN class="code-keyword">for</SPAN> %A in (*.zip) <SPAN class="code-keyword">do</SPAN> gpg \--output %A.asc \--detach-sig \--armor %A +<SPAN class="code-keyword">for</SPAN> %A in (*.gz) <SPAN class="code-keyword">do</SPAN> gpg \--output %A.asc \--detach-sig \--armor %A +<SPAN class="code-keyword">for</SPAN> %A in (*.zip) <SPAN class="code-keyword">do</SPAN> gpg \--print-md md5 %A > %A.md5 +<SPAN class="code-keyword">for</SPAN> %A in (*.gz) <SPAN class="code-keyword">do</SPAN> gpg \--print-md md5 %A > %A.md5 +</PRE> +</DIV></DIV> +<P>The commands above should produce artifacts of an appropriate format, as follows.</P> + +<P>md5 should look like</P> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +8fb7cb398063ed0dffa414168468fffc \*apache-tuscany-sca-1.1-incubating.zip +</PRE> +</DIV></DIV> +<P>asc should look like</P> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +\---\--BEGIN PGP SIGNATURE-\---\- +Version: GnuPG v1.4.5 (Cygwin) + +iD8DBQBHnLGGE8fTrnkHPxIRAqPmAJ4tOR6W663FKCXHPi1GlLBWDyZwJgCeMqbb +68DOq0YsU/O7kJsBHuZXhJw= +=elh0 +\---\--END PGP SIGNATURE-\---\- +</PRE> +</DIV></DIV> + +<H4><A name="MakingReleases-Puttheartifactsupinyourhomedirectoryonpeople.apache.org"></A>Put the artifacts up in your home directory on people.apache.org</H4> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd tags/$RELEASE-$RC/distribution/target +$SCPCOMMAND *.asc $PAOUSER@people.apache.org:public_html/sca-java/$RELEASE/$RC/ +$SCPCOMMAND *.md5 $PAOUSER@people.apache.org:public_html/sca-java/$RELEASE/$RC/ +$SCPCOMMAND *.zip $PAOUSER@people.apache.org:public_html/sca-java/$RELEASE/$RC/ +$SCPCOMMAND *.gz $PAOUSER@people.apache.org:public_html/sca-java/$RELEASE/$RC/ +</PRE> +</DIV></DIV> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd tags/$RELEASE-$RC/distribution/src/main/release +pscp RELEASE_NOTES $PAOUSER@people.apache.org:public_html/sca-java/$RELEASE/$RC/ +pscp CHANGES $PAOUSER@people.apache.org:public_html/sca-java/$RELEASE/$RC/ +</PRE> +</DIV></DIV> + +<H4><A name="MakingReleases-Checkpermissionsonthefiles"></A>Check permissions on the files</H4> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +chmod 644 \*.zip +chmod 644 \*.gz +chmod 644 \*.txt +</PRE> +</DIV></DIV> + +<H4><A name="MakingReleases-Deploythemavenartifactslocally"></A>Deploy the maven artifacts locally</H4> + +<P>As a potentially simpler alternative to deploying directly to p.a.o you can do the following (I have to use this approach as I <BR> +can't get mvn to authenticate with p.a.o properly during deployment)</P> + +<P>Build the maven release artifact to a local directory (in this case target/deploy at the top level):</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd tags/$RELEASE-$RC +mvn -Prelease -DaltDeploymentRepository=id::<SPAN class="code-keyword">default</SPAN>::file:target/deploy +</PRE> +</DIV></DIV> + +<P>Copy the artifacts up to p.a.o:</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd cd tags/$RELEASE-$RC/target/deploy +scp -r org slaws@people.apache.org:./public_html/tuscany/2.0-beta1-RC2/maven +</PRE> +</DIV></DIV> + +<H4><A name="MakingReleases-Deploythemavenartifactsdirectlytop.a.o"></A>Deploy the maven artifacts directly to p.a.o</H4> + +<P>Note below that the reference to "me.people" in the "id" part of the -DaltDeploymentRepository argument to the maven deploy plugin is simply an identifier relating to a stanza in your local maven repo's settings.xml file. Note that also if you use ssh authentication by referencing a file containing your private key from the settings.xml file, then be sure to use a file in open ssh format. People who have followed the apache <A href="http://www.apache.org/dev/user-ssh-windows.html" class="external-link" rel="nofollow">instructions for creating ssh keys on Windows</A> with putty will probably not have created open ssh format files. You can however convert your .ppk file to the open ssh format by loading it into puttygen and using the conversion menu.</P> + +<P>Create a maven directory in your target directory on people.apache.org</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd tags/$RELEASE-$RC +mvn -N -DaltDeploymentRepository=me.people::<SPAN class="code-keyword">default</SPAN>::scp:<SPAN class="code-comment">//people.apache.org/home/$PAOUSER/public_html/sca-java/$RELEASE/$RC/maven verify gpg:sign install:install deploy:deploy -Dgpg.passphrase=$PASSPHRASE +</SPAN> + +cd modules + +mvn clean +mvn \-DaltDeploymentRepository=me.people::<SPAN class="code-keyword">default</SPAN>::scp:<SPAN class="code-comment">//people.apache.org/home/$PAOUSER/public_html/sca-java/$RELEASE/$RC/maven verify gpg:sign install:install deploy:deploy -Dgpg.passphrase=$PASSPHRASE +</SPAN> +cd shades (note, I thought it was only shades/base that needed doing, but the maven plugin failed on shades artifacts, so I deployed from shades) +mvn clean +mvn \-DaltDeploymentRepository=me.people::<SPAN class="code-keyword">default</SPAN>::scp:<SPAN class="code-comment">//people.apache.org/home/$PAOUSER/public_html/sca-java/$RELEASE/$RC/maven verify gpg:sign install:install deploy:deploy -Dgpg.passphrase=$PASSPHRASE +</SPAN> + +cd maven/maven-tuscany-plugin + +mvn clean +mvn \-DaltDeploymentRepository=me.people::<SPAN class="code-keyword">default</SPAN>::scp:<SPAN class="code-comment">//people.apache.org/home/$PAOUSER/public_html/sca-java/$RELEASE/$RC/maven verify gpg:sign install:install deploy:deploy -Dgpg.passphrase=$PASSPHRASE +</SPAN> +cd features + +mvn clean +mvn \-DaltDeploymentRepository=me.people::<SPAN class="code-keyword">default</SPAN>::scp:<SPAN class="code-comment">//people.apache.org/home/$PAOUSER/sca-java/$RELEASE/$RC/maven verify gpg:sign install:install deploy:deploy -Dgpg.passphrase=$PASSPHRASE +</SPAN> +</PRE> +</DIV></DIV> + +<H4><A name="MakingReleases-Deploysourcejars"></A>Deploy source jars</H4> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd modules +mvn -Psource -DaltDeploymentRepository=me.people::<SPAN class="code-keyword">default</SPAN>::scp:<SPAN class="code-comment">//people.apache.org/home/kelvingoodson/public_html/sca-java/2.0-M5/RC3/maven -Dgpg.passphrase=$PASSPHRASE deploy +</SPAN> +</PRE> +</DIV></DIV> + +<H4><A name="MakingReleases-Checkpermissionsofmavenartifacts"></A>Check permissions of maven artifacts</H4> + +<P>If you've copied the maven artifacts up to p.a.o manually you may need to fix the permissions of the directories</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +find . -type d -exec chmod 755 {} \; +</PRE> +</DIV></DIV> + +<P>and files </P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +find . -type f -exec chmod 644 {} \; +</PRE> +</DIV></DIV> + +<H4><A name="MakingReleases-CheckthattheMavenartifactswork"></A>Check that the Maven artifacts work</H4> + +<P>Point you maven build at your p.a.o dir as a temporary mirror, for example, add mirror element to the settings.xml file (usually found at .m2/settings)</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +<mirrors> +<mirror> +<id>ant.staging</id> +<url>http:<SPAN class="code-comment">//people.apache.org/~<PAOUSER>/sca-java/<release>/<RC>/maven</url> +</SPAN><mirrorOf>*</mirrorOf> +</mirror> +</mirrors> +</PRE> +</DIV></DIV> +<P>Clean you local SCA artifacts and use maven to compile samples and see if they run.</P> + +<H4><A name="MakingReleases-Checkinthetag"></A>Check in the tag</H4> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd tags +svn copy $RELEASE-$RC https:<SPAN class="code-comment">//svn.apache.org/repos/asf/tuscany/sca-java-2.x/tags/$RELEASE-$RC -m <SPAN class="code-quote">"Tag <SPAN class="code-keyword">for</SPAN> $RELEASE $RC"</SPAN></SPAN> +</PRE> +</DIV></DIV> + +<H4><A name="MakingReleases-Startvoting"></A>Start voting</H4> + +<P>The PPMC will vote first. This may give rise to a new release candidate being required. If so you need to go back and start at the "Create Tag" step but using the next RC number.</P> + +<P>Once the PPMC vote is complete the vote is moved across to the IPMC. Once all the votes are complete the artifacts that have been voted on can be release.</P> + + +<H4><A name="MakingReleases-Onceallthevotingiscomplete"></A>Once all the voting is complete</H4> + +<P>Copy the artifacts from you directory on people.apache.org to;</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +/www/www.apache.org/dist/tuscany/java/sca/$RELEASE +</PRE> +</DIV></DIV> + +<P>Also check that the KEYS file is up to date.</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +/www/www.apache.org/dist/tuscany +</PRE> +</DIV></DIV> + +<H4><A name="MakingReleases-Copythestagingrepototheliverepo"></A>Copy the staging repo to the live repo</H4> + +<P><B>Option 1</B> (untested for 2.0-M5)</P> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +mvn stage:copy -Dsource=<SPAN class="code-quote">"http:<SPAN class="code-comment">//people.apache.org/~slaws/tuscany/1.1-RC3a/maven"</SPAN> -Dtarget=<SPAN class="code-quote">"scp://<userid@>people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository"</SPAN> -Dversion=1.1</SPAN> +</PRE> +</DIV></DIV> + +<P>You'll need the maven stage plugin to do this. Since maven-stage-plugin is not published, the release manager should checkout the source for the plugin and build it.</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +http:<SPAN class="code-comment">//svn.apache.org/repos/asf/maven/plugins/trunk/maven-stage-plugin/</SPAN> +</PRE> +</DIV></DIV> + +<P>Or <B>option 2</B> (used for 2.0-M5), instead of using the Maven stage plugin just manually copy the artifacts there:</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd public_html/sca-java/$RELEASE/$RC/org/apache/tuscany/ +cp -p -v -R sca/ /x1/www/people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/tuscany/sca +cp -p -v -R maven/ /x1/www/people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/tuscany/maven +</PRE> +</DIV></DIV> + +<H4><A name="MakingReleases-Checkthepermissionsintherepo"></A>Check the permissions in the repo</H4> + +<P>There is a script in the SNAPSHOT report that sets the permissions correctly; take a look at the contents of the script and adjust for your purposes</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +more /www/people.apache.org/repo/m2-snapshot-repository/fix-permissions.sh +</PRE> +</DIV></DIV> + +<P>For example:</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd /x1/www/people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/tuscany/ +find . ! -perm 775 -type d -user ${USER} -exec chmod 775 {} \; -print +find . ! -perm 664 -iname maven-metadata.xml* -user ${USER} -exec chmod 664 {} \; -print +find . -group slaws -exec chgrp committers {} \; -print +</PRE> +</DIV></DIV> + +<H4><A name="MakingReleases-Copythereleasecandidatetagtothefinaltagname."></A>Copy the release candidate tag to the final tag name.</H4> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +svn copy https:<SPAN class="code-comment">//svn.apache.org/repos/asf/tuscany/sca-java-2.x/tags/$RELEASE-$RC/ https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/tags/$RELEASE -m <SPAN class="code-quote">"Copy $RC tag as <SPAN class="code-keyword">final</SPAN> release tag"</SPAN></SPAN> +</PRE> +</DIV></DIV></TD></TR></TBODY></TABLE> + +<H4><A name="MakingReleases-Updatethewebsite"></A>Update the website</H4> + +<P>Edit the wiki that defines the website content <A href="../TUSCANY/sca-java-2x-releases.html" class="external-link" rel="nofollow">https://cwiki.apache.org/confluence/display/TUSCANY/SCA+Java+2.x+Releases</A></P> + +<H4><A name="MakingReleases-Waitfortheartifactandwebsitechangestobeupdated"></A>Wait for the artifact and website changes to be updated</H4> + +<P>The website will be updated from the wiki within a few hours. Once updated, check that the new download pages work correctly. In particular follow the download links for artifacts right through to a selection of mirror download sites to be sure that the distributions have been mirrored.</P> + +<H4><A name="MakingReleases-BeattheDrum%21"></A>Beat the Drum!</H4> + +<P>send an announcement, using your apache.org email address, to the apache announce list, and to the tuscany dev and user lists. Blog the announcement on the Tuscany blog and any other publicity that seems appropriate.</P> + </DIV> + + <DIV class="tabletitle"> + Children + <SPAN class="smalltext" id="show" style="display: inline;"> + <A href="javascript:showChildren()">Show Children</A></SPAN> + <SPAN class="smalltext" id="hide" style="display: none;"> + <A href="javascript:hideChildren()">Hide Children</A></SPAN> + </DIV> + <DIV class="greybox" id="children" style="display: none;"> + <A href="setting-up-ssh.html" title="Setting up ssh">Setting up ssh</A> + <SPAN class="smalltext">(Apache Tuscany Docs 2.x)</SPAN> + <BR> + <A href="create-signing-key.html" title="Create Signing Key">Create Signing Key</A> + <SPAN class="smalltext">(Apache Tuscany Docs 2.x)</SPAN> + <BR> + <A href="get-hold-of-rat.html" title="Get hold of RAT">Get hold of RAT</A> + <SPAN class="smalltext">(Apache Tuscany Docs 2.x)</SPAN> + <BR> + </DIV> + </DIV> + </DIV> + </TD> + </TR> + </TABLE> + + <!-- footer --> + <TABLE border="0" cellpadding="2" cellspacing="0" width="100%"> + <TR> + <TD align="left" valign="middle" class="footer"> + + <IMG src="http://static.delicious.com/img/delicious.small.gif" height="10" width="10" alt="Delicious"> + <A href="http://delicious.com/save" onclick="window.open('http://delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title),'delicious','toolbar=no,width=550,height=550'); return false;">Bookmark this on Delicious</A> + + <IMG src="http://digg.com/img/badges/16x16-digg-guy.gif" width="16" height="16" alt="Digg!"> + <A href="" onclick="window.open('http://digg.com/submit?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&topic=programming');">Digg this</A> + <!-- Slicker, but no text + <script type="text/javascript"> + digg_skin = 'icon'; + digg_window = 'new'; + digg_title = 'Apache Geronimo v2.2 Documentation : Making Releases'; + digg_topic = 'programming'; + </script> + <script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script> + --> + + </TD> + <TD align="right" valign="middle" class="footer"> + <A href="http://cwiki.apache.org/GMOxPMGT/geronimo-privacy-policy.html">Privacy Policy</A> - + Copyright © 2003-2010, The Apache Software Foundation, Licensed under <A href="http://www.apache.org/licenses/LICENSE-2.0">ASL 2.0.</A> + </TD> + </TR> + </TABLE> + + </BODY> +</HTML>
\ No newline at end of file |