Return-Path: X-Original-To: apmail-lucene-java-commits-archive@www.apache.org Delivered-To: apmail-lucene-java-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1C22ADAE7 for ; Fri, 26 Oct 2012 22:38:15 +0000 (UTC) Received: (qmail 199 invoked by uid 500); 26 Oct 2012 22:38:15 -0000 Delivered-To: apmail-lucene-java-commits-archive@lucene.apache.org Received: (qmail 166 invoked by uid 500); 26 Oct 2012 22:38:14 -0000 Mailing-List: contact java-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-commits@lucene.apache.org Received: (qmail 158 invoked by uid 99); 26 Oct 2012 22:38:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2012 22:38:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.131] (HELO eos.apache.org) (140.211.11.131) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2012 22:38:13 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id CB7E47DC for ; Fri, 26 Oct 2012 22:37:52 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Fri, 26 Oct 2012 22:37:52 -0000 Message-ID: <20121026223752.4347.15346@eos.apache.org> Subject: =?utf-8?q?=5BLucene-java_Wiki=5D_Update_of_=22PublishMavenArtifacts=22_by?= =?utf-8?q?_SteveRowe?= Auto-Submitted: auto-generated X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Lucene-java Wiki" f= or change notification. The "PublishMavenArtifacts" page has been changed by SteveRowe: http://wiki.apache.org/lucene-java/PublishMavenArtifacts?action=3Ddiff&rev1= =3D5&rev2=3D6 =3D Publish Lucene Maven Release Artifacts =3D - = - ''' At the moment you need to do this from the same machine you made the = RC from! ''' = See http://www.apache.org/dev/publishing-maven-artifacts.html for more ge= neral instructions. = 1. Download the Lucene/Solr Maven artifacts (if you don't already have t= hem) using {{{dev-tools/scripts/crawl.maven.release.dist.sh}}} - they will = be placed in {{{lucene/}}} and {{{solr/}}} directories in the current direc= tory. - 1. You'll need either {{{~/.ant/settings.xml}}} or {{{~/.m2/settings.xml= }}} with the following contents (see http://maven.apache.org/settings.html#= Servers for details): - {{{ - - - - apache.releases.https - Your ASF username - Your ASF password - - - - }}} - Because Maven Ant Tasks, used by the Lucene/Solr build to stage Maven ar= tifacts, can't handle encrypted passwords in {{{settings.xml}}} (as of vers= ion 2.1.3, anyway; see [[http://jira.codehaus.org/browse/MANTTASKS-177|MANT= TASKS-177]]), your password must be in plaintext - make sure permissions on= this file are set to disallow access by other people, e.g. 600. 1. Stage the Lucene artifacts using the {{{stage-maven-artifacts}}} targ= et run from the {{{lucene/}}} directory, e.g. = {{{ ant clean stage-maven-artifacts -Dmaven.dist.dir=3D~/temp/lucene -Dm2.rep= ository.id=3Dapache.releases.https -Dm2.repository.url=3Dhttps://repository= .apache.org/service/local/staging/deploy/maven2 }}} - * {{{maven.dist.dir}}} is the directory contiaining the Lucene Maven a= rtifacts. + * {{{maven.dist.dir}}} is the directory containing the Lucene Maven ar= tifacts. - * {{{m2.repository.id}}} is the repository ID, given in your {{{~/.ant= /settings.xml}}} or {{{~/.m2/settings.xml}}}, for the ASF release repositor= y. + * {{{m2.repository.id}}} is the ID of the ASF Maven staging repository. - * {{{m2.repository.url}}} is the staging URL for the ASF release repos= itory. + * {{{m2.repository.url}}} is the staging URL for the ASF Maven staging= repository.<
><
> + You will be prompted to supply your ASF credentials. To skip this promp= t, you can store your credentials in {{{settings.xml}}} - see below for det= ails.<
><
> 1. Close the staging repository created by {{{stage-maven-artifacts}}} -= "closing" a staging repository disallows further artifact staging to the s= taging repository, and performs some quality checks, including POM and sign= ature validation: a. Log into https://repository.apache.org/index.html using your ASF cr= edentials. a. Select "Staging Repositories" under "Build Promotion" from the navi= gation bar on the left. @@ -43, +29 @@ a. Select the staging repository containing the Lucene artifacts. a. Click on the "Release" button above the repository list, then enter= a description when prompted, e.g. "Lucene 3.6.0". = + =3D=3D Storing credentials for the staging repository =3D=3D + = + By default, {{{ant stage-maven-artifacts}}} will prompt you to supply you= r ASF credentials. However, if you specify {{{-Dm2.credentials.prompt=3Dfa= lse}}}, your credentials will be drawn from your {{{~/.ant/settings.xml}}}= or {{{~/.m2/settings.xml}}}. Note that the staging repository ID value su= pplied via {{{-Dm2.repository.id=3D...}}} must match the {{{...= }}} given in your {{{~/.ant/settings.xml}}} or {{{~/.m2/setti= ngs.xml}}}. + = + Make sure the following is in either {{{~/.ant/settings.xml}}} or {{{~/.m= 2/settings.xml}}} (see http://maven.apache.org/settings.html#Servers for de= tails): + = + {{{ + + + + apache.releases.https + Your ASF username + Your ASF password + + + + }}} + = + Because Maven Ant Tasks, used by the Lucene/Solr build to stage Maven= artifacts, can't handle encrypted passwords in {{{settings.xml}}} (as of v= ersion 2.1.3, anyway; see [[http://jira.codehaus.org/browse/MANTTASKS-177|M= ANTTASKS-177]]), your password must be in plaintext - make sure permissions= on this file are set to disallow access by other people, e.g. {{{600}}}. +=20