Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 4576 invoked from network); 24 May 2010 18:52:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 May 2010 18:52:46 -0000 Received: (qmail 29194 invoked by uid 500); 24 May 2010 18:52:45 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 29038 invoked by uid 500); 24 May 2010 18:52:45 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 28836 invoked by uid 99); 24 May 2010 18:52:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 May 2010 18:52:45 +0000 X-ASF-Spam-Status: No, hits=-1513.3 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 May 2010 18:52:44 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id B5FA016E21 for ; Mon, 24 May 2010 18:52:24 +0000 (GMT) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Mon, 24 May 2010 18:52:24 -0000 Message-ID: <20100524185224.4695.38331@eos.apache.org> Subject: =?utf-8?q?=5BCommons_Wiki=5D_Update_of_=22UsingNexus=22_by_sebbapache?= Dear Wiki user, You have subscribed to a wiki page or wiki category on "Commons Wiki" for c= hange notification. The "UsingNexus" page has been changed by sebbapache. The comment on this change is: Add details of local deployment. http://wiki.apache.org/commons/UsingNexus?action=3Ddiff&rev1=3D1&rev2=3D2 -------------------------------------------------- = If the upload fails with {{{Error deploying artifact: Failed to transfer = file: ... Return code is: 401}}} then either the username/password are inco= rrect, or Nexus has not yet been set up for the commons component. = + =3D=3D=3D Deploying to a local directory =3D=3D=3D + = + The deploy target can easily be overridden by defining the altDeploymentR= epository property. + For example, the following will deploy to the local directory {{{target/d= eploy}}}: + = + {{{mvn deploy -Prelease [-Dgpg.skip] [-DskipTests] -DaltDeploymentReposit= ory=3Did::default::file:target/deploy}}} + = + It's difficult to type and remember this parameter. One solution is to cr= eate a profile in your settings.xml: + = + {{{ + + local-deploy + + id::default::file:target/deploy + + + }}} + = + You can then add {{{-Plocal-deploy}}} to the deploy command to change the= deployment to use {{{target/deploy}}}. =3D=3D=3D Creating a Nexus staging release =3D=3D=3D = First, create the SVN tag (with appropriate non-SNAPSHOT version in the p= om), check it out into a fresh workspace and build/test the code. Once the code appears to be ready, the Maven artifacts can be deployed: = - {{{mvn deploy -Prelease [-DskipTests]}}} + {{{mvn deploy -Prelease [-DskipTests] [-Plocal-deploy]}}} = + The {{{-Plocal-deploy}}} parameter can be used as described above to redi= rect the deployment to target/deploy. + = - This time, the artifacts will be deployed to the release staging reposito= ry in Nexus. + Otherwise, the artifacts will be deployed to the release staging reposito= ry in Nexus. = To review the files that have been uploaded, login to Nexus using your Ap= ache login and password: https://repository.apache.org/index.html You should then see additional menu items in the LHS: --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org