openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] OpenJPA > Releasing OpenJPA 1.0.x or 1.1.x (Old SCP Steps)
Date Tue, 31 Aug 2010 16:57:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1810/9/5/_/styles/combined.css?spaceKey=openjpa&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/openjpa/Releasing+OpenJPA+1.0.x+or+1.1.x+%28Old+SCP+Steps%29">Releasing OpenJPA 1.0.x or 1.1.x (Old SCP Steps)</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~drwoods">Donald Woods</a>
    </h4>
        <div id="versionComment">
        <b>Comment:</b>
        update title<br />
    </div>
        <br/>
                         <h4>Changes (0)</h4>
                                 
    
<div id="page-diffs">
            <table class="diff" cellpadding="0" cellspacing="0">
            <tr><td class="diff-snipped" >...<br></td></tr>
        </table>
</div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        
<style type='text/css'>/*<![CDATA[*/
table.ScrollbarTable  {border: none;padding: 3px;width: 100%;padding: 3px;margin: 0px;background-color: #f0f0f0}
table.ScrollbarTable td.ScrollbarPrevIcon {text-align: center;width: 16px;border: none;}
table.ScrollbarTable td.ScrollbarPrevName {text-align: left;border: none;}
table.ScrollbarTable td.ScrollbarParent {text-align: center;border: none;}
table.ScrollbarTable td.ScrollbarNextName {text-align: right;border: none;}
table.ScrollbarTable td.ScrollbarNextIcon {text-align: center;width: 16px;border: none;}

/*]]>*/</style><div class="Scrollbar"><table class='ScrollbarTable'><tr><td class='ScrollbarPrevIcon'><a href="/confluence/display/openjpa/JPA+2.0+Roadmap"><img border='0' align='middle' src='/confluence/images/icons/back_16.gif' width='16' height='16'></a></td><td width='33%' class='ScrollbarPrevName'><a href="/confluence/display/openjpa/JPA+2.0+Roadmap">JPA 2.0 Roadmap</a>&nbsp;</td><td width='33%' class='ScrollbarParent'><sup><a href="/confluence/display/openjpa/Release+Management"><img border='0' align='middle' src='/confluence/images/icons/up_16.gif' width='8' height='8'></a></sup><a href="/confluence/display/openjpa/Release+Management">Release Management</a></td><td width='33%' class='ScrollbarNextName'>&nbsp;<a href="/confluence/display/openjpa/Releasing+OpenJPA+1.2.x+%28Old+SCP+Steps%29">Releasing OpenJPA 1.2.x (Old SCP Steps)</a></td><td class='ScrollbarNextIcon'><a href="/confluence/display/openjpa/Releasing+OpenJPA+1.2.x+%28Old+SCP+Steps%29"><img border='0' align='middle' src='/confluence/images/icons/forwd_16.gif' width='16' height='16'></a></td></tr></table></div>

<h1><a name="ReleasingOpenJPA1.0.xor1.1.x%28OldSCPSteps%29-MakinganOpenJPA1.0.xor1.1.xRelease"></a>Making an OpenJPA 1.0.x or 1.1.x Release</h1>

<p>These instructions guide the release manager through the steps of making an official OpenJPA release.</p>

<h2><a name="ReleasingOpenJPA1.0.xor1.1.x%28OldSCPSteps%29-Prerequisites"></a>Prerequisites</h2>

<ol>
	<li>You should read the <a href="/confluence/display/openjpa/OpenJPA+Release+Policy" title="OpenJPA Release Policy">OpenJPA Release Policy</a> to decide on the name of the new release, based on the content.</li>
	<li>You should read the Apache <a href="http://www.apache.org/dev/release.html" class="external-link" rel="nofollow">Release FAQ</a></li>
	<li>You must have shell access to people.apache.org</li>
	<li>You must have the following utilities installed on your local machine and available in your path:
	<ul>
		<li><a href="http://java.sun.com/" class="external-link" rel="nofollow">JDK 1.4 / 1.5</a></li>
		<li><a href="http://www.openssh.com/" class="external-link" rel="nofollow">ssh</a></li>
		<li><a href="http://maven.apache.org/" class="external-link" rel="nofollow">Maven 2</a></li>
		<li><a href="http://www.gnupg.org/" class="external-link" rel="nofollow">gnupg</a></li>
	</ul>
	</li>
	<li>For Windows users, install <a href="http://cygwin.com/" class="external-link" rel="nofollow">Cygwin</a> in addition to the above utilities
	<ul>
		<li>Make sure the Net/openssh and Utils/gnupg packages are installed that come with Cygwin installation.</li>
		<li>Optional: <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" class="external-link" rel="nofollow">Putty</a></li>
	</ul>
	</li>
</ol>


<h2><a name="ReleasingOpenJPA1.0.xor1.1.x%28OldSCPSteps%29-Tasksthatneedtobeperformedforeachrelease"></a>Tasks that need to be performed for each release</h2>

<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/information.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>In the examples below, it is assumed that the release name will be <b>1.0.1</b>, and that the current checked-in version name is <b>1.0.1-SNAPSHOT</b> and stored in the branch named <b>1.0.x</b>.</td></tr></table></div>
<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Monday, 12:00 </th>
<td class='confluenceTd'> Make sure the <a href="#ReleasingOpenJPA1.0.xor1.1.x%28OldSCPSteps%29-Onetimesetup">One time setup</a> steps have been performed <br class="atl-forced-newline" /> </td>
</tr>
<tr>
<th class='confluenceTh'> Monday, 12:01 </th>
<td class='confluenceTd'> Create a sub-branch off of the parent branch from which to make the release. Releasing from a branch will allow any cosmetic changes that need to be made for the release to be approved to be done without preventing other more disruptive advances in the trunk from potentially causing problems with the release. A branch can be made by running: <br class="atl-forced-newline" />
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-none">
svn copy -m "OpenJPA Release 1.0.1 branch" \
  https://svn.apache.org/repos/asf/openjpa/branches/1.0.x \
  https://svn.apache.org/repos/asf/openjpa/branches/1.0.1
</pre>
</div></div> </td>
</tr>
<tr>
<th class='confluenceTh'> Monday, 12:02 </th>
<td class='confluenceTd'> Check out a clean branch from which to build the release: <br class="atl-forced-newline" />
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-none">
svn checkout https://svn.apache.org/repos/asf/openjpa/branches/1.0.1
cd 1.0.1
</pre>
</div></div>
<p> <br class="atl-forced-newline" /></p>
<div class='panelMacro'><table class='noteMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>Make sure there is no space characters in the path to the build root subdirectory, i.e. "c:\OpenJPA 1.0.1 Release\build". See "<a href="#ReleasingOpenJPA1.0.xor1.1.x%28OldSCPSteps%29-SpaceCharacterinBuildRootPath">Space Character in Build Root Path</a>"</td></tr></table></div> </td>
</tr>
<tr>
<th class='confluenceTh'> Monday, 12:03 </th>
<td class='confluenceTd'> Update all the POMs to remove "-SNAPSHOT" suffix from the version. If you have perl installed, you can easily do it with a single command: <br class="atl-forced-newline" />
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-none">
perl -pi -e "s;&lt;version&gt;1.0.1-SNAPSHOT&lt;/version&gt;;&lt;version&gt;1.0.1&lt;/version&gt;;g" \
    pom.xml */pom.xml */*/pom.xml
</pre>
</div></div>
<p>Update the <tt>&lt;scm.dir&gt;</tt> property in the top level pom.xml to the 1.0.1 release. \<br/>
Update the <tt>&lt;developer&gt;</tt> element in the top level pom.xml if new committers are added or removed. This applies to the 1.0.x branch only. </p></td>
</tr>
<tr>
<th class='confluenceTh'> Monday, 12:10 </th>
<td class='confluenceTd'> Verify that LICENSE.txt contains up to date licenses for any dependencies which are included in our distribution.<br class="atl-forced-newline" /> Any jars or source code which is included with the OpenJPA distribution that is not covered by the Apache license must be noted in LICENSE.txt. Two examples of this are the persistence and orm dtds (licensed under the CDDL) and Serp. If any new non Apache dependencies have been introduced they will have to be covered here as well. If any discrepancies are found update LICENSE.txt and commit the changes. <br class="atl-forced-newline" /> </td>
</tr>
<tr>
<th class='confluenceTh'> Monday, 12:15 </th>
<td class='confluenceTd'> Update BUILDING.txt, CHANGES.txt and RELEASE-NOTES.html <br class="atl-forced-newline" />
<ul>
	<li>BUILDING.txt should be included in the source tarball and contains instructions on how to build OpenJPA. Prior to shipping a release we should ensure that those instructions are accurate.</li>
	<li>CHANGES.txt contains a text representation of all the changes which have been made since the preceding release. Most of the contents of this file can be generated through JIRA's release notes mechanism <a href="http://issues.apache.org/jira/secure/ConfigureReleaseNote.jspa?projectId=12310351" class="external-link" rel="nofollow">here</a></li>
	<li>RELEASE-NOTES.html contains general information on the OpenJPA project as well as an html version of the changes since the preceding version. The html change log may also be generated via JIRA.<br class="atl-forced-newline" /></li>
</ul>
</td>
</tr>
<tr>
</tr>
<tr>
<th class='confluenceTh'> Monday, 12:20 </th>
<td class='confluenceTd'> Commit the POM changes <br class="atl-forced-newline" />
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-none">
svn commit -m "Updated to version 1.0.1 for the release"
</pre>
</div></div> </td>
</tr>
<tr>
<th class='confluenceTh'> Monday, 12:21 </th>
<td class='confluenceTd'> Perform an initial build and install it in the local repository (this step is only required because of an <a href="http://jira.codehaus.org/browse/MJAVADOC-116" class="external-link" rel="nofollow">open bug</a> with Maven's javadoc plugin): <br class="atl-forced-newline" />
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-none">
mvn clean install -Dtest=false
</pre>
</div></div> </td>
</tr>
<tr>
<th class='confluenceTh'> Monday, 12:23 </th>
<td class='confluenceTd'> Now build the release locally, which will build and test, run the Apache <a href="http://mojo.codehaus.org/rat-maven-plugin/" class="external-link" rel="nofollow">Release Audit Tool</a> to verify license headers, generate the javadoc and docbook PDF and HTML, run through the JPA TCK, build the source and binariy assemblies in <b>target/site/downloads/</b>, and sign the release files. <br class="atl-forced-newline" />
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-none">
export MAVEN_OPTS=-Xmx1000m
mvn --batch-mode deploy site \
    -Ptck-profile,examples-profile,license-verify-profile,javadoc-profile,docbook-profile,sign-release \
    -Djava14.jar=${JAVA_HOME}/../../1.4/Classes/classes.jar \
    -Dtck.zip=${HOME}/.m2/privaterepos/jpa-1_0b-tck.zip
</pre>
</div></div>
<p><br class="atl-forced-newline" /></p>
<div class='panelMacro'><table class='noteMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>This operation will also sign the release files with the <b>gpg</b> utility using the &lt;username&gt;@apache.org key. If your code signing key is under a different address, specify it by appending the following argument to the command above: &#45;Dopenjpa.release.keyAlias=mysigningalias@somedomain.org</td></tr></table></div>
<p><br class="atl-forced-newline" /></p>
<div class='panelMacro'><table class='noteMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>The <b>java14.jar</b> path should be changed to the local install path for the JDK 1.4 rt.jar so that JDK 1.4 verification can take place.</td></tr></table></div>
<p><br class="atl-forced-newline" /></p>
<div class='panelMacro'><table class='noteMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>The <b>tck.zip</b> path should be changed to the local install path to the JPA TCK so that the TCK can be run against the release. If you are not licensed to access the TCK, remove the <tt>tck-profile</tt> profile and <tt>-Dtck.zip</tt> property from the command. Ask someone who has access to run the TCK for you.</td></tr></table></div>
<p><br class="atl-forced-newline" /></p>
<div class='panelMacro'><table class='noteMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>The <tt>examples-profile</tt> has problem running automatically in this maven build task. You will need to run the examples manually. Run the maven command without the <tt>examples-profile</tt>, then perform the following steps to run the example:
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
mkdir openjpa-integration\examples\target\examples
unzip target\site\downloads\apache-openjpa-1.0.1-binary.zip -d openjpa-integration\examples\target\examples
cd openjpa-integration\examples\target\examples\apache-openjpa-1.0.1\examples\hellojpa
ant
cd ..\relations
ant
cd ..\reversemapping
ant
</pre>
</div></div></td></tr></table></div> </td>
</tr>
<tr>
<th class='confluenceTh'> Monday, 13:00 </th>
<td class='confluenceTd'> Verify the signatures: <br class="atl-forced-newline" />
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-none">
gpg --multifile --verify target/site/downloads/*.asc
</pre>
</div></div> </td>
</tr>
<tr>
<th class='confluenceTh'> Monday, 13:01 </th>
<td class='confluenceTd'> Upload the release candidate to <a href="http://openjpa.apache.org/builds/1.0.1/downloads/" class="external-link" rel="nofollow">http://openjpa.apache.org/builds/1.0.1/downloads/</a>: <br class="atl-forced-newline" />
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-none">
mvn site:deploy
</pre>
</div></div><div class='panelMacro'><table class='warningMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/forbidden.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>Bear in mind that uploads to <b>people.apache.org/www/openjpa.apache.org/builds/</b> are not visible at <a href="http://openjpa.apache.org/builds" class="external-link" rel="nofollow">http://openjpa.apache.org/builds</a> until after the hourly synchronization has taken place, as described at <a href="http://www.apache.org/dev/project-site.html" class="external-link" rel="nofollow">http://www.apache.org/dev/project-site.html</a>.</td></tr></table></div></td>
</tr>
<tr>
<th class='confluenceTh'> Monday, 15:00 </th>
<td class='confluenceTd'> Start a vote for the release on the <a href="mailto:dev@openjpa.apache.org" class="external-link" rel="nofollow">dev@openjpa.apache.org</a> mailing list. Votes made by committers and members of the OpenJPA project are considered binding for this vote. For an example of the mail, see <a href="http://www.nabble.com/-VOTE--Approve-OpenJPA-1.0.0-release-%284th-attempt%29-p12305349.html" class="external-link" rel="nofollow">this archived 1.0.0 vote</a> </td>
</tr>
<tr>
<th class='confluenceTh'> Tuesday, Wednesday </th>
<td class='confluenceTd'> While waiting for the vote to complete, perform whatever manual review and testing on the release you deem appropriate. </td>
</tr>
<tr>
<th class='confluenceTh'> Thursday, 15:00 </th>
<td class='confluenceTd'> If the vote is successful after 3 days tally the votes in an email to <a href="mailto:dev@openjpa.apache.org" class="external-link" rel="nofollow">dev@openjpa.apache.org</a>, like <a href="http://www.nabble.com/-VOTE-RESULT--Approve-OpenJPA-1.0.0-release-%284th-attempt%29-p12379716.html" class="external-link" rel="nofollow">this one</a>. <br class="atl-forced-newline" /> </td>
</tr>
<tr>
<th class='confluenceTh'> Thursday, 15:10 </th>
<td class='confluenceTd'> Make the OpenJPA assemblies available to the Apache mirroring system by copying them over on <b>people.apache.org</b>:<br class="atl-forced-newline" />
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-none">
ssh people.apache.org
cp -r /www/openjpa.apache.org/builds/1.0.1/downloads/* /www/www.apache.org/dist/openjpa/1.0.1
chgrp -R openjpa /www/www.apache.org/dist/openjpa/1.0.1
chmod -R g+w /www/www.apache.org/dist/openjpa/1.0.1
</pre>
</div></div><div class='panelMacro'><table class='warningMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/forbidden.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>The OpenJPA binary release will be available via the link <a href="http://www.apache.org/dyn/closer.cgi/openjpa/1.0.1/apache-openjpa-1.0.1-binary.zip" class="external-link" rel="nofollow">http://www.apache.org/dyn/closer.cgi/openjpa/1.0.1/apache-openjpa-1.0.1-binary.zip</a> after 24 hours, as per the <a href="http://apache.org/dev/mirrors.html" class="external-link" rel="nofollow">Apache mirroring information</a>.</td></tr></table></div></td>
</tr>
<tr>
<th class='confluenceTh'> Thursday, 15:15 </th>
<td class='confluenceTd'> Now that the release is locked down, convert the writeable 1.0.1 branch to a (du jure) read-only tag: <br class="atl-forced-newline" />
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-none">
svn mv -m "OpenJPA Release 1.0.1 tag" \
  https://svn.apache.org/repos/asf/openjpa/branches/1.0.1 \
  https://svn.apache.org/repos/asf/openjpa/tags/1.0.1
</pre>
</div></div> </td>
</tr>
<tr>
<th class='confluenceTh'> Thursday, 15:16 </th>
<td class='confluenceTd'> Check out the parent branch and bump up the release number to be the next snapshot version: <br class="atl-forced-newline" />
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-none">
svn checkout https://svn.apache.org/repos/asf/openjpa/branches/1.0.x
cd 1.0.x
perl -pi -e "s;&lt;version&gt;1.0.1-SNAPSHOT&lt;/version&gt;;&lt;version&gt;1.0.2-SNAPSHOT&lt;/version&gt;;g" \
    pom.xml */pom.xml */*/pom.xml
svn commit -m "Updating version in branch to 1.0.2-SNAPSHOT"
</pre>
</div></div> </td>
</tr>
<tr>
<th class='confluenceTh'> Thursday, 15:20 </th>
<td class='confluenceTd'> Update the <a href="http://cwiki.apache.org/openjpa/downloads.html" class="external-link" rel="nofollow">http://cwiki.apache.org/openjpa/downloads.html</a> page with links to the download mirrors, using the existing entries as templates. 
<div class='panelMacro'><table class='noteMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>All artifacts (<b>apache-openjpa-1.0.1-binary.zip</b> and <b>apache-openjpa-1.0.1-source.zip</b>) <b>must</b> link to the mirrors, but signatures (<b>apache-openjpa-1.0.1-binary.zip.asc</b> and <b>apache-openjpa-1.0.1-source.zip.asc</b>) <b>must not</b> link to mirrors.</td></tr></table></div></td>
</tr>
<tr>
<th class='confluenceTh'> Thursday, 15:30 </th>
<td class='confluenceTd'> The documentation on the server-side must manually be extracted on <b>people.apache.org</b>, and the links at <a href="http://openjpa.apache.org/documentation.html" class="external-link" rel="nofollow">http://openjpa.apache.org/documentation.html</a> need to be updated with the new versions and the "latest" documentation symbolic links need to be updated: <br class="atl-forced-newline" />
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-none">
cd /www/openjpa.apache.org/builds/1.0.1/
unzip downloads/apache-openjpa-1.0.1-binary.zip
rm /www/openjpa.apache.org/docs/latest
ln -fvs ../builds/1.0.1/apache-openjpa-1.0.1/docs/ /www/openjpa.apache.org/docs/latest
</pre>
</div></div>
<p> <br class="atl-forced-newline" />
Then point the links on <a href="http://openjpa.apache.org/documentation.html" class="external-link" rel="nofollow">http://openjpa.apache.org/documentation.html</a> to: <br class="atl-forced-newline" /></p>
<ul>
	<li>HTML Manual: <a href="http://openjpa.apache.org/builds/1.0.1/apache-openjpa-1.0.1/docs/manual/index.html" class="external-link" rel="nofollow">http://openjpa.apache.org/builds/1.0.1/apache-openjpa-1.0.1/docs/manual/index.html</a> <br class="atl-forced-newline" /></li>
	<li>HTML Manual (single-page): <a href="http://openjpa.apache.org/builds/1.0.1/apache-openjpa-1.0.1/docs/manual/manual.html" class="external-link" rel="nofollow">http://openjpa.apache.org/builds/1.0.1/apache-openjpa-1.0.1/docs/manual/manual.html</a> <br class="atl-forced-newline" /></li>
	<li>PDF Manual: <a href="http://openjpa.apache.org/builds/1.0.1/apache-openjpa-1.0.1/docs/manual/manual.pdf" class="external-link" rel="nofollow">http://openjpa.apache.org/builds/1.0.1/apache-openjpa-1.0.1/docs/manual/manual.pdf</a> <br class="atl-forced-newline" /></li>
	<li>Javadocs: <a href="http://openjpa.apache.org/builds/1.0.1/apache-openjpa-1.0.1/docs/javadoc/index.html" class="external-link" rel="nofollow">http://openjpa.apache.org/builds/1.0.1/apache-openjpa-1.0.1/docs/javadoc/index.html</a> <br class="atl-forced-newline" /></li>
</ul>
</td>
</tr>
<tr>
</tr>
<tr>
<th class='confluenceTh'> Thursday, 15:45 </th>
<td class='confluenceTd'> Merge the staged maven2 repository jars to with the official repository to rsync. This is currently a difficult process that requires the <b>maven-staging-plugin</b>, which much be built from source. The process looks something like this (executed in the root of your local OpenJPA checkout): <br class="atl-forced-newline" />
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-none">
svn co http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-stage-plugin/ \
    /tmp/maven-stage-plugin
mvn -f /tmp/maven-stage-plugin/pom.xml clean install
for i in $(find openjpa-* -name m2-repository | egrep -v "openjpa-project|openjpa-integration|openjpa-examples"); do
    cd $i
    mvn stage:copy -Dsource=file://. \
    -Dtarget=scp://people.apache.org:/www/people.apache.org/repo/m2-ibiblio-rsync-repository \
    -Dversion=1.0.1
    cd -
done
</pre>
</div></div><div class='panelMacro'><table class='warningMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/forbidden.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>This process requires Maven 2.0.5. It is currently quite delicate and error-prone. Once the <b>maven-stage-plugin</b> is released, it should be possible to make it more automated.</td></tr></table></div>
<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/information.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>Window/Cygwin user: See <a href="#ReleasingOpenJPA1.0.xor1.1.x%28OldSCPSteps%29-MerginglocalrepositorytoremoterepositoryinCygwin%2FWindows">Merging local repository to remote repository in Cygwin/Windows</a></td></tr></table></div>
<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/information.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>Linux users: You may need to change the '-Dsource=' option to read '-Dsource=file:{}'. The <a href="file://" class="external-link" rel="nofollow">file://</a>{} syntax may result in errors creating the wagon file with errors like: "Repository path /openjpa-jdbc-5/target/site/m2-repository does not exist, and cannot be created."</td></tr></table></div></td>
</tr>
<tr>
<th class='confluenceTh'> Thursday, 16:00 </th>
<td class='confluenceTd'> Update the <a href="https://issues.apache.org/jira/secure/project/ManageVersions.jspa?pid=12310351" class="external-link" rel="nofollow">JIRA versions </a> page to mark the version as "released", and set the date to the date that the release was approved. You may also need to make a new release entry for the subsequent release.</td>
</tr>
<tr>
<th class='confluenceTh'> Friday, 16:00 </th>
<td class='confluenceTd'> After the mirrors have had time to update (24 hours to be on the safe side), make a <a href="http://cwiki.apache.org/confluence/pages/createblogpost.action?spaceKey=openjpa" class="external-link" rel="nofollow">news announcement</a> on the OpenJPA wiki. 
<div class='panelMacro'><table class='noteMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>Once the news item is made, it won't show up on the <a href="http://cwiki.apache.org/openjpa/" class="external-link" rel="nofollow">front page</a> unless you make some minor edit to the containing page (e.g., adding a newline somewhere).</td></tr></table></div>
<p> </p></td>
</tr>
<tr>
<th class='confluenceTh'> Friday, 16:05 </th>
<td class='confluenceTd'> Make an announcement about the release on the <a href="mailto:users@openjpa.apache.org" class="external-link" rel="nofollow">users@openjpa.apache.org</a> list (and, for major releases, on the <a href="mailto:announce@apache.org" class="external-link" rel="nofollow">announce@apache.org</a> list as per <a href="http://www.apache.org/foundation/mailinglists.html#foundation-announce" class="external-link" rel="nofollow">the Apache Announcement Mailing Lists page</a>). The announcement might look something like <a href="http://www.nabble.com/-ANNOUNCE--Apache-OpenJPA-1.0.0-released-p12397604.html" class="external-link" rel="nofollow">this</a>. </td>
</tr>
<tr>
<th class='confluenceTh'> Friday, 16:10 </th>
<td class='confluenceTd'> Make an announcement for the <a href="http://freshmeat.net/projects/openjpa/" class="external-link" rel="nofollow">freshmeat.net OpenJPA project</a> (optional) </td>
</tr>
<tr>
<th class='confluenceTh'> Friday, 17:00 </th>
<td class='confluenceTd'> Have a beer and enjoy your weekend while the world's grateful programmers revel in yet another high-quality release of Apache OpenJPA! </td>
</tr>
</tbody></table>
</div>


<h2><a name="ReleasingOpenJPA1.0.xor1.1.x%28OldSCPSteps%29-Onetimesetup"></a>One time setup</h2>

<p>These setup steps only need to be performed on a particular machine once.</p>
<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/information.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>Developers using Linux workstations can skip over the references to PuTTY and Cygwin</td></tr></table></div>

<h3><a name="ReleasingOpenJPA1.0.xor1.1.x%28OldSCPSteps%29-CreateandinstallaSSHkey"></a>Create and install a SSH key</h3>

<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> 1 </th>
<td class='confluenceTd'> Install PuTTY </td>
</tr>
<tr>
<th class='confluenceTh'> 2a </th>
<td class='confluenceTd'> Use ssh-keygen to create a SSH key.
<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/information.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>See <a href="http://www.networknewz.com/networknewz-10-20030707AuthenticatingbyPublicKeyOpenSSH.html" class="external-link" rel="nofollow">Authenticating By Public Key (OpenSSH)</a> for a good description on why and how to perform this task.</td></tr></table></div> </td>
</tr>
<tr>
<th class='confluenceTh'> 2b </th>
<td class='confluenceTd'> In Windows platform, use PuttyGen to create a SSH key (see Putty help for details). 
<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/information.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td><ul>
	<li>Use "<b>SSH-2 DSA</b>" key type and <b>1024</b>-bit key size.</li>
	<li>Copy the content of the "Public key for pasting...." and save it to a file named <tt>authorized_keys</tt> for later use.</li>
	<li>The private key saved by PuTTYGen can only be used in Putty configuration.</li>
</ul>
</td></tr></table></div> </td>
</tr>
<tr>
<th class='confluenceTh'> 3 </th>
<td class='confluenceTd'> <tt>pscp</tt> your SSH public key <tt>authorized_keys</tt> saved in last step to <tt>&#126;/authorized_keys</tt> </td>
</tr>
<tr>
<th class='confluenceTh'> 4 </th>
<td class='confluenceTd'> Use PuTTY to login to people.apache.org </td>
</tr>
<tr>
<th class='confluenceTh'> 5 </th>
<td class='confluenceTd'> Create a <tt>&#126;\.ssh</tt> folder and change its file mode to 700.</td>
</tr>
<tr>
<th class='confluenceTh'> 6 </th>
<td class='confluenceTd'> Move or append <tt>&#126;/authorized_keys</tt> to <tt>&#126;/.ssh/authorized_keys</tt> and change its file mode to 600.
<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/information.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td><ul>
	<li>Each public key in the <tt>authorized_keys</tt> spans only one line.
	<ul>
		<li>For example: "<tt>ssh-dss AAAAB3NzaC1kc3MAAA ..... agBmmfZ9uAbSqA== dsa-key-20071107</tt>"</li>
	</ul>
	</li>
	<li>'#' in the first column is a comment line.</li>
</ul>
</td></tr></table></div> </td>
</tr>
<tr>
<th class='confluenceTh'> 7 </th>
<td class='confluenceTd'> Configure putty to use your private key and save the session 
<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/information.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>Specify your private key in the "Connection -&gt; SSH -&gt; Auth" category in Putty configuration.</td></tr></table></div></td>
</tr>
<tr>
</tr>
</tbody></table>
</div>


<h3><a name="ReleasingOpenJPA1.0.xor1.1.x%28OldSCPSteps%29-CreateaPGPkey"></a>Create a PGP key</h3>

<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> 1 </th>
<td class='confluenceTd'> Install cgywin, including <b>Utils/gnupg</b> and <b>Net/openssh</b> packages, or install gpg from <tt><a href="http://www.gnupg.org/(en)/download/index.html" class="external-link" rel="nofollow">http://www.gnupg.org/(en)/download/index.html</a></tt> </td>
</tr>
<tr>
<th class='confluenceTh'> 2 </th>
<td class='confluenceTd'> Generate a key-pair with <tt>$ gpg &#45;-gen-key</tt> using default key kind ("DSA and Elgamal") and ELG-E keys size (2048).
<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/information.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td><ul>
	<li>The generated keys are stored in $HOME/.gnupg or %HOME%\Application Data\gnupg subdirectory.</li>
	<li>Save the content in this subdirectory to a safe media. This contains your private key used to sign all the OpenJPA release materials.</li>
</ul>
</td></tr></table></div> </td>
</tr>
<tr>
<th class='confluenceTh'> 3 </th>
<td class='confluenceTd'> Backup your cygwin home directory to another media </td>
</tr>
<tr>
<th class='confluenceTh'> 4 </th>
<td class='confluenceTd'> Add your public key to <tt><a href="https://svn.apache.org/repos/asf/openjpa/site/docs/KEYS" class="external-link" rel="nofollow">https://svn.apache.org/repos/asf/openjpa/site/docs/KEYS</a></tt> and <tt>/www/www.apache.org/dist/openjpa/KEYS</tt>. See the commands describe at the beginning of this KEYS file to perform this task. The gpg key-pair is used to sign the published artifacts for the OpenJPA releases. </td>
</tr>
<tr>
<th class='confluenceTh'> 5 </th>
<td class='confluenceTd'> Following the instructions in <a href="http://people.apache.org/~henkp/trust/" class="external-link" rel="nofollow">http://people.apache.org/~henkp/trust/</a> and ask someone in the OpenJPA project to sign your public key. </td>
</tr>
<tr>
<th class='confluenceTh'> 6 </th>
<td class='confluenceTd'> Submit your public key to a key server. E.g. <a href="http://pgp.surfnet.nl:11371/" class="external-link" rel="nofollow">http://pgp.surfnet.nl:11371/</a> or <a href="http://pgp.mit.edu/" class="external-link" rel="nofollow">http://pgp.mit.edu/</a></td>
</tr>
</tbody></table>
</div>


<h3><a name="ReleasingOpenJPA1.0.xor1.1.x%28OldSCPSteps%29-UpdateMavensettingsforourservers"></a>Update Maven settings for our servers</h3>

<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> 1 </th>
<td class='confluenceTd'> Create a settings.xml under .m2 (in your Document and Settings folder in Windows) </td>
</tr>
<tr>
<td class='confluenceTd'>&nbsp;</td>
<td class='confluenceTd'> <div class="code panel" style="border-style: solid;border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;border-bottom-style: solid;"><b>settings.xml</b></div><div class="codeContent panelContent">
<pre class="code-xml">
&lt;settings xmlns=<span class="code-quote">"http://maven.apache.org/POM/4.0.0"</span>
          <span class="code-keyword">xmlns:xsi</span>=<span class="code-quote">"http://www.w3.org/2001/XMLSchema-instance"</span>
          xsi:schemaLocation=<span class="code-quote">"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"</span>&gt;
    <span class="code-tag">&lt;servers&gt;</span>
       <span class="code-tag">&lt;server&gt;</span>
          <span class="code-tag">&lt;id&gt;</span>people.apache.org<span class="code-tag">&lt;/id&gt;</span>
          <span class="code-tag">&lt;username&gt;</span>$USERNAME<span class="code-tag">&lt;/username&gt;</span>
          <span class="code-tag">&lt;privateKey&gt;</span>$PATH_TO_PRIVATE_KEY<span class="code-tag">&lt;/privateKey&gt;</span>
          <span class="code-tag">&lt;directoryPermissions&gt;</span>775<span class="code-tag">&lt;/directoryPermissions&gt;</span>
          <span class="code-tag">&lt;filePermissions&gt;</span>644<span class="code-tag">&lt;/filePermissions&gt;</span>
       <span class="code-tag">&lt;/server&gt;</span>
    <span class="code-tag">&lt;/servers&gt;</span>    
<span class="code-tag">&lt;/settings&gt;</span>
</pre>
</div></div>
<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/information.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td><tt>$PATH_TO_PRIVATE_KEY</tt> is the path to the private key generated for ssh. E.g. /home/yourLocalUserId/.ssh/id_dsa.</td></tr></table></div> </td>
</tr>
</tbody></table>
</div>


<h3><a name="ReleasingOpenJPA1.0.xor1.1.x%28OldSCPSteps%29-ExposeacopyofknownhoststoMaven"></a>Expose a copy of known hosts to Maven</h3>

<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> 1 </th>
<td class='confluenceTd'> From cygwin, ssh to people.apache.org, save the public key if prompted, and exit </td>
</tr>
<tr>
<td class='confluenceTd'>&nbsp;</td>
<td class='confluenceTd'> cygwin will save the known hosts to your <tt>&#126;/.ssh</tt> folder, but the script cannot access it there (from Windows) </td>
</tr>
<tr>
<th class='confluenceTh'> 2 </th>
<td class='confluenceTd'> From cygwin (not Windows) create another <tt>.ssh</tt> folder at <img class="emoticon" src="/confluence/images/icons/emoticons/help_16.gif" height="16" width="16" align="absmiddle" alt="" border="0"/> </td>
</tr>
<tr>
<th class='confluenceTh'> 3 </th>
<td class='confluenceTd'> Copy the <tt>known_hosts</tt> file to the new <tt>.ssh</tt> folder </td>
</tr>
</tbody></table>
</div>


<h2><a name="ReleasingOpenJPA1.0.xor1.1.x%28OldSCPSteps%29-Troubleshooting"></a>Troubleshooting</h2>

<h3><a name="ReleasingOpenJPA1.0.xor1.1.x%28OldSCPSteps%29-SpaceCharacterinBuildRootPath"></a>Space Character in Build Root Path</h3>

<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Description </th>
<td class='confluenceTd'> If there are spaces in the path to the build root subdirectory, the maven task uses to generate the revision number for the org.apache.openjpa.revision.properties yields incorrect data. For example:
<div class="code panel" style="border-style: solid;border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;border-bottom-style: solid;"><b>org.apache.openjpa.revision.properties</b></div><div class="codeContent panelContent">
<pre class="code-java">
revision.number=Type 'svnversion --help' <span class="code-keyword">for</span> usage.
openjpa.version=1.0.1
</pre>
</div></div> </td>
</tr>
<tr>
<th class='confluenceTh'> Solution </th>
<td class='confluenceTd'> Rename the path and remove all spaces. </td>
</tr>
</tbody></table>
</div>


<h3><a name="ReleasingOpenJPA1.0.xor1.1.x%28OldSCPSteps%29-MerginglocalrepositorytoremoterepositoryinCygwin%2FWindows"></a>Merging local repository to remote repository in Cygwin/Windows</h3>

<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Description </th>
<td class='confluenceTd'> The "maven-stage-plugin" is very sensitive to the parameters being passed to it, i.e. the source and target URL properties. When this plugin is used under Cygwin, make sure the following practices are used:
<ul>
	<li>Use absolute path in the find command's root directory. <br class="atl-forced-newline" />
Problem symptom:
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
$ find . -name m2-repository -not -path <span class="code-quote">"*openjpa-project*"</span> \
    -exec mvn -f <span class="code-quote">"c:/tmp/maven-stage-plugin/pom.xml"</span> stage:copy \
    -Dsource=file:<span class="code-comment">//{} -Dtarget=scp://allee8285@people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository \
</span>    -Dversion=1.0.1 \;
[INFO] Scanning <span class="code-keyword">for</span> projects...
[INFO] Searching repository <span class="code-keyword">for</span> plugin with prefix: 'stage'.
........
[INFO] Downloading file from the source repository:
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error copying repository from file:<span class="code-comment">//./openjpa-all/target/site/m2-repository to \
</span>       scp:<span class="code-comment">//allee8285@people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</span>
</pre>
</div></div></li>
	<li>Quote and use the drive name in the path.<br/>
Problem symptom:
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
$ find /cygdrive/c/OpenJPA.1.0.1.Release/1.0.1 -name m2-repository -not -path <span class="code-quote">"*openjpa-project*"</span> \
    -exec mvn -f /cygwin/c/tmp/maven-stage-plugin/pom.xml stage:copy \
    -Dsource=file:<span class="code-comment">//{} -Dtarget=scp://allee8285@people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository \
</span>    -Dversion=1.0.1 \;
[INFO] Scanning <span class="code-keyword">for</span> projects...
[INFO] Searching repository <span class="code-keyword">for</span> plugin with prefix: 'stage'.
........
[INFO] Downloading file from the source repository:
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error copying repository from file:<span class="code-comment">///cygdrive/c/OpenJPA.1.0.1.Release/1.0.1/openjpa-all/target/site/m2-repository to
</span>       scp:<span class="code-comment">//allee8285@people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository
</span>
Embedded error: Could not read from file: c:\cygdrive\c\OpenJPA.1.0.1.Release\1.0.1\openjpa-all\target\site\m2-repository
\cygdrive\c\OpenJPA.1.0.1.Release\1.0.1\openjpa-all\target\site\m2-repository (Access is denied.)
</pre>
</div></div></li>
	<li>Specify the people.apache.org user id in the target property.<br/>
Problem symptom:
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
$ find <span class="code-quote">"c:/OpenJPA.1.0.1.Release/1.0.1"</span> -name m2-repository -not -path <span class="code-quote">"*openjpa-project*"</span> \
   -exec mvn -f <span class="code-quote">"c:/tmp/maven-stage-plugin/pom.xml"</span> stage:copy 
   -Dsource=file:<span class="code-comment">//{} -Dtarget=scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository \
</span>   -Dversion=1.0.1 \;
[INFO] Scanning <span class="code-keyword">for</span> projects...
[INFO] Searching repository <span class="code-keyword">for</span> plugin with prefix: 'stage'.
[INFO] ----------------------------------------------------------------------------
........
[INFO] Downloading file from the source repository: /org/apache/openjpa/openjpa/maven-metadata.xml.sha1
[INFO] Downloading metadata from the target repository.
Password:: *********
........
Password:: *********
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error copying repository from file:<span class="code-comment">//c:/OpenJPA.1.0.1.Release/1.0.1/openjpa-all/target/site/m2-repository to \
</span>       scp:<span class="code-comment">//people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</span>
</pre>
</div></div> </li>
</ul>
</td>
</tr>
<tr>
<th class='confluenceTh'> Solution </th>
<td class='confluenceTd'> As recommended in the descriptions.
<div class='panelMacro'><table class='noteMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>For example:
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
find <span class="code-quote">"c:/OpenJPA.1.0.1.Release/1.0.1"</span> -name m2-repository -not -path <span class="code-quote">"*openjpa-project*"</span> \
    -exec mvn -f <span class="code-quote">"c:/tmp/maven-stage-plugin/pom.xml"</span> stage:copy \
    -Dsource=file:<span class="code-comment">//{} \
</span>    -Dtarget=scp:<span class="code-comment">//allee8285@people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository \
</span>    -Dversion=1.0.1 \;
</pre>
</div></div></td></tr></table></div> </td>
</tr>
</tbody></table>
</div>


<h3><a name="ReleasingOpenJPA1.0.xor1.1.x%28OldSCPSteps%29-Cygwin%2FWindowsFilePath"></a>Cygwin/Windows File Path</h3>

<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Description </th>
<td class='confluenceTd'> For Cygwin/Windows user: file and folder path names using drive identifier (e.g. <tt>C:\OpenJPA Release\1.0.1</tt> ) in commands can be expressed as <tt>/cygwin/c/OpenJPA Release/1.0.1/</tt>. This form of path name specification may have inconsistent and undesirable behaviors.</td>
</tr>
<tr>
<th class='confluenceTh'> Solution </th>
<td class='confluenceTd'> Consistently use the following naming conventions:
<ul>
	<li>Continue to use the Windows form of path name, e.g. <tt>C:\a\b\c</tt></li>
	<li>Use <tt>'/'</tt> instead of <tt>'\'</tt> character as file separator, e.g. <tt>C:/a/b/c</tt></li>
	<li>Quote all path name using <tt>'"'</tt> character, e.g. "<tt>C:/a/b/c</tt>"</li>
	<li>Avoid using space characters in path name, e.g. "<tt>C:/OpenJPA.Release/1.0.1</tt>"</li>
</ul>
</td>
</tr>
<tr>
</tr>
</tbody></table>
</div>


<h3><a name="ReleasingOpenJPA1.0.xor1.1.x%28OldSCPSteps%29-%22Toomanyunapprovedlicenses%3A%22"></a>"Too many unapproved licenses:"</h3>

<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Description </th>
<td class='confluenceTd'> Encounter the "Too many unapproved licenses:" message while running the "license-verify-profile" profile in "<tt>mvn deploy site...</tt>" step. This is caused by extra artifacts in the build tree that the license verification plugin does not recognized. Examples of these artifacts are:
<ol>
	<li>Eclipse control files, .classpath, .project</li>
	<li>User created log files</li>
</ol>
</td>
</tr>
<tr>
<th class='confluenceTh'> Solution </th>
<td class='confluenceTd'> Avoid the followings:
<ol>
	<li>Don't use Eclipse's svn plugin to "Check out" files to a Eclipse project. Simply use the svn command, as described in the release instructions.</li>
	<li>Don't create, directly or indirectly, any files under the release build tree.</li>
</ol>
</td>
</tr>
<tr>
</tr>
</tbody></table>
</div>


<h2><a name="ReleasingOpenJPA1.0.xor1.1.x%28OldSCPSteps%29-Resources"></a>Resources</h2>

<ul>
	<li>Apache Apache <a href="http://www.apache.org/dev/release.html" class="external-link" rel="nofollow">Release FAQ</a></li>
	<li><a href="http://apache.org/dev/release-signing.html" class="external-link" rel="nofollow">Signing Releases</a></li>
	<li><a href="http://wiki.wsmoak.net/cgi-bin/wiki.pl?ReleaseSigning" class="external-link" rel="nofollow">Wendy's notes on Release Signing</a></li>
	<li>Apache <a href="http://apache.org/dev/mirrors.html" class="external-link" rel="nofollow">Mirroring Guidelines</a></li>
	<li>Struts <a href="http://cwiki.apache.org/WW/creating-and-signing-a-distribution.html" class="external-link" rel="nofollow">Release Instructions</a> (upon which these instructions are based)</li>
</ul>

    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action" class="grey">Change Notification Preferences</a>
        </div>
        <a href="https://cwiki.apache.org/confluence/display/openjpa/Releasing+OpenJPA+1.0.x+or+1.1.x+%28Old+SCP+Steps%29">View Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=29127&revisedVersion=51&originalVersion=50">View Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/openjpa/Releasing+OpenJPA+1.0.x+or+1.1.x+%28Old+SCP+Steps%29?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message