cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Cayenne Website > Publishing Maven Artifacts
Date Thu, 22 Sep 2011 17:52:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/1/_/styles/combined.css?spaceKey=CAYSITE&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><s>Publishing Maven Artifacts</s></h2>
     <h4>Page <b>removed</b> by             <a href="https://cwiki.apache.org/confluence/display/~andrus">Andrus
Adamchik</a>
    </h4>
     <br/>
     <div class="notificationGreySide">
         <p><em>This page is of use for committers only as it describes a procedure
of publishing Cayenne builds to the central Maven repo.</em></p>


<h2><a name="PublishingMavenArtifacts-PublishingSNAPSHOTS"></a>Publishing
SNAPSHOTS</h2>

<h3><a name="PublishingMavenArtifacts-Prerequisites"></a>Prerequisites</h3>

<ul>
	<li>You must be a committer</li>
	<li>You should be able to <a href="/confluence/display/CAYSITE/Building+Cayenne"
title="Building Cayenne">build Cayenne with Maven</a>.</li>
	<li>As publishing a snapshot affects other users and peer developers, it is a good
idea to announce that snapshot is to be published in advance on the dev list. No need for
a formal vote, but it is implied that any objections must be discussed and addressed in some
form.</li>
	<li>Set the right snapshot permissions in your <tt>"~/.m2/settings.xml"</tt>,
for more details see <a href="http://people.apache.org/repo/m2-snapshot-repository/README.txt"
class="external-link" rel="nofollow">/www/people.apache.org/repo/m2-snapshot-repository/README.txt</a>
on people.apache.org:</li>
</ul>


<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
panelContent">
<pre>&lt;servers&gt;
        &lt;server&gt;
            &lt;id&gt;apache-snapshots&lt;/id&gt;
            &lt;username&gt;aadamchik&lt;/username&gt;
                &lt;directoryPermissions&gt;775&lt;/directoryPermissions&gt;
                &lt;filePermissions&gt;644&lt;/filePermissions&gt;
        &lt;/server&gt;
&lt;/servers&gt;</pre>
</div></div>



<h3><a name="PublishingMavenArtifacts-PublishingMavenSnapshots"></a>Publishing
Maven Snapshots</h3>

<p>Cayenne build system is configured to only include "public" submodules when doing
a deploy, so all you need to do is this:</p>

<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
panelContent">
<pre># cd cayenne 
# mvn deploy</pre>
</div></div>

<h2><a name="PublishingMavenArtifacts-PublishingaRelease"></a>Publishing
a Release</h2>

<h3><a name="PublishingMavenArtifacts-Prerequisites"></a>Prerequisites</h3>

<ul>
	<li>The release must be approved by the PMC.</li>
	<li>make sure the <a href="/confluence/display/CAYSITE/Building+Cayenne" title="Building
Cayenne">Maven build</a> is done with checksum option:</li>
</ul>


<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
panelContent">
<pre>mvn install -DcreateChecksum=true</pre>
</div></div>
<ul>
	<li>Set the right snapshot permissions in your <tt>"~/.m2/settings.xml"</tt>,
for more details see <a href="http://people.apache.org/repo/m2-snapshot-repository/README.txt"
class="external-link" rel="nofollow">/www/people.apache.org/repo/m2-snapshot-repository/README.txt</a>
on people.apache.org:</li>
</ul>


<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
panelContent">
<pre>&lt;servers&gt;
        &lt;server&gt;
                &lt;id&gt;apache-releases&lt;/id&gt;
                &lt;username&gt;aadamchik&lt;/username&gt;
                &lt;directoryPermissions&gt;775&lt;/directoryPermissions&gt;
                &lt;filePermissions&gt;644&lt;/filePermissions&gt;
        &lt;/server&gt;
&lt;/servers&gt;</pre>
</div></div>

<h3><a name="PublishingMavenArtifacts-PublishingReleaseArtifacts"></a>Publishing
Release Artifacts</h3>

<p>Cayenne build system is configured to only include "public" submodules when doing
a deploy, so all you need to do is this:</p>

<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
panelContent">
<pre># cd cayenne 
# mvn deploy -P gpg</pre>
</div></div>

<p>Note the <tt>"gpg"</tt> profile. It activates artifact signing. Just
like in the case of <a href="/confluence/display/CAYSITE/Release+Guide" title="Release
Guide">manual assembly signing</a>, your public key must be in Cayenne KEYS file.
If you have more than one key, to select a specific key, use an extra command-line switch
passing a key name to it. E.g.:</p>

<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
panelContent">
<pre># cd cayenne 
# mvn deploy -P gpg -Dgpg.keyname=B8AF90BF</pre>
</div></div>


     </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message