Skip to content
Permalink
Browse files
Apache Archiva Main site deployment
  • Loading branch information
effrafax committed May 1, 2019
1 parent b0e9808 commit aedc3f51599cae142ee6992184c1f67404924a8f
Showing 25 changed files with 49 additions and 39 deletions.
@@ -116,7 +116,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -117,7 +117,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -117,7 +117,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -116,7 +116,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -117,7 +117,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -131,28 +131,37 @@ <h2><a name="Archiva_release_process"></a>Archiva release process</h2>
&lt;username&gt;&lt;/username&gt;
&lt;password&gt;&lt;/password&gt;
&lt;/server&gt;</pre></div></li>
<li>If there are changes in the parent pom, release parent pom &#x2013; https://svn.apache.org/repos/asf/archiva/parent
<li>If there are changes in the parent pom, release parent pom &#x2013; <a class="externalLink" href="https://gitbox.apache.org/repos/asf/archiva-parent.git">https://gitbox.apache.org/repos/asf/archiva-parent.git</a>
<ul>
<li>mvn release:prepare (verify that it has been properly tagged)</li>
<li>mvn release:perform (verify that it has been deployed correctly in the staging repo)</li></ul></li>
<li>Update the parent pom version of archiva &#x2013; https://svn.apache.org/repos/asf/archiva/trunk
<li>Update the parent pom version of archiva &#x2013; <a class="externalLink" href="https://gitbox.apache.org/repos/asf/archiva.git">https://gitbox.apache.org/repos/asf/archiva.git</a>
<ul>
<li>change the parent pom version to the archiva-parent version that has just been released</li>
<li>commit the changes made</li></ul></li>
<li>Update the release notes and the site.xml for version changes in archiva-docs</li>
<li>Verify that the webapp-tests are building successfully. Since it is in a separate profile but inside the Archiva source tree, it will not be released but will still be included in the release tag. If some tests are failing, comment it out first so that only the passing tests are executed when the webapp-tests module are built from the tag.</li>
<li>Release archiva You should have a GPG agent running (preferred), and confirm it works by running &quot;gpg -ab&quot; (type some text and press Ctrl-D). If you do not have a GPG agent running, make sure that you have the &quot;apache-release&quot; profile set in your settings.xml as shown below.
<li>Verify that the webapp-tests are building successfully. <br />Since it is in a separate profile but inside the Archiva source tree, it will not be released but will still be included in the release tag. If some tests are failing, comment it out first so that only the passing tests are executed when the webapp-tests module are built from the tag.</li>
<li>Release archiva.<br />You should have a GPG agent running (preferred), and confirm it works by running &quot;gpg -ab&quot; (type some text and press Ctrl-D). If you do not have a GPG agent running, make sure that you have the &quot;apache-release&quot; profile set in your settings.xml as shown below.
<div class="source"><pre class="prettyprint">&lt;profile&gt;
&lt;id&gt;apache-release&lt;/id&gt;
&lt;properties&gt;
&lt;gpg.passphrase&gt;[GPG_PASSWORD]&lt;/gpg.passphrase&gt;
&lt;/properties&gt;
&lt;/profile&gt;</pre></div>
<p>Set your user credentials for the stage repo in the <i>servers</i> section of your settings.xml for <a href="#archiva-repository.releases">archiva-repository.releases</a>.</p>
<p>Execute mvn release:prepare (check that it has been properly tagged. the tag name must be.. archiva-[VERSION]).</p>
<p>Next, execute mvn release:perform</p>
<p>Prepare your environment: For Archiva 2.x you have to use JDK 7 and set memory settings.</p>
<div class="source"><pre class="prettyprint">export JAVA_HOME=&lt;PATH_TO_JDK7&gt;
export PATH=$JAVA_HOME/bin:$PATH
export MAVEN_OPTS=&quot;-Xmx6144m -XX:MaxPermSize=512m&quot; # It may work with less heap, but this is a safe value
export JAVA_OPT=&quot;-Xmx6144m -XX:MaxPermSize=512m&quot; </pre></div>
<p>Execute </p>
<div class="source"><pre class="prettyprint">mvn release:prepare</pre></div>
<p>Check that it has been properly tagged. The tag name must be.. archiva-[VERSION].</p>
<p>If all works fine, execute </p>
<div class="source"><pre class="prettyprint">mvn release:perform</pre></div>
<p>The perform task will push to the repository, if it was successful. After successfully running this task, it's not possible to roll back.</p>
<p>Download the uploaded files via wget:</p>
<div class="source"><pre class="prettyprint">ARCHV=&quot;2.2.3&quot; # Enter the new archiva version
<div class="source"><pre class="prettyprint">ARCHV=&quot;2.2.4&quot; # Enter the new archiva version
RELEASE_URL=&quot;http://archiva-repository.apache.org/archiva/repository/archiva-releases-stage&quot;
wget ${RELEASE_URL}/org/apache/archiva/archiva-jetty/${ARCHV}/archiva-jetty-${ARCHV}-bin.tar.gz
# Verify the signatures:
@@ -181,19 +190,20 @@ <h2><a name="Archiva_release_process"></a>Archiva release process</h2>
# Move also the POM and Redback and Redback Component releases, if there are new ones.</pre></div>
<p>To sync the jars to Maven Central, you need to merge the repository archiva-releases-stage to &quot;Central Rsync Repository&quot;</p>
<p>Mark the appropriate release version in JIRA as complete.</p>
<p>Update the archiva site (https://gitbox.apache.org/repos/asf/archiva-site.git) for the versions and release notes URL:</p>
<p>Update the archiva site (<a class="externalLink" href="https://gitbox.apache.org/repos/asf/archiva-site.git">https://gitbox.apache.org/repos/asf/archiva-site.git</a>) for the versions and release notes URL:</p>
<p>Mostly these properties of the pom.xml should be edited:</p>
<div class="source"><pre class="prettyprint"> &lt;archivaReleaseVersion&gt;2.2.3&lt;/archivaReleaseVersion&gt;
&lt;archivaReleaseDate&gt;16th May 2017&lt;/archivaReleaseDate&gt;
<div class="source"><pre class="prettyprint"> &lt;archivaReleaseVersion&gt;2.2.4&lt;/archivaReleaseVersion&gt;
&lt;archivaReleaseDate&gt;16th May 2019&lt;/archivaReleaseDate&gt;
&lt;archivaCurrentDevVersion&gt;3.0.0-SNAPSHOT&lt;/archivaCurrentDevVersion&gt;</pre></div>
<p>Run <b>deploySite.sh</b>. The script will give the information where to check the content locally and asks before pushing to the remote repository.</p>
<p>Once mirroring done (can be 24H): remove previous versions from https://dist.apache.org/repos/dist/release/archiva/</p>
<p>Publish the reference docs (sh ./deploySite.sh in the archiva-modules directory) from the release tag. You may have to exclude the archiva-webapp module to do this, and will require MAVEN_OPTS=-Xmx256m. You may need to use Maven 2.2.1 instead of Maven 3.x for this.</p>
<p>Run <b>deploySite.sh</b>. The script will prepare the site locally and provide information how to check the content before pushing to the remote repository.</p>
<p>Once mirroring done (can be 24H): remove previous versions from <a class="externalLink" href="https://dist.apache.org/repos/dist/release/archiva/">https://dist.apache.org/repos/dist/release/archiva/</a></p>
<p>Publish the reference docs (sh ./deploySite.sh in the archiva-modules directory) from the release tag. You may have to exclude the archiva-webapp module to do this.</p>
<p>Send out an announcement of the release to:</p>
<ul>
<li>users@archiva.apache.org</li>
<li>users@maven.apache.org</li>
<li>announce@apache.org</li></ul></li></ol></div>
<li>announce@apache.org</li></ul>
<p>If there are security incidents that should be published after release, please check the Apache information <a class="externalLink" href="http://www.apache.org/security/committers.html">http://www.apache.org/security/committers.html</a> for further actions.</p></li></ol></div>
</div>
</div>
<hr/>
@@ -116,7 +116,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -116,7 +116,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -117,7 +117,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -117,7 +117,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -116,7 +116,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -117,7 +117,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -118,7 +118,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -117,7 +117,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -118,7 +118,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -118,7 +118,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -118,7 +118,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -117,7 +117,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -116,7 +116,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -116,7 +116,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -118,7 +118,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -116,7 +116,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -116,7 +116,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -116,7 +116,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -116,7 +116,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >
@@ -118,7 +118,7 @@

<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate" class="pull-right">Last Published: 30 Apr 2019</li>
<li id="publishDate" class="pull-right">Last Published: 01 May 2019</li>
</ul>
</div>
<div id="bodyColumn" >

0 comments on commit aedc3f5

Please sign in to comment.