Return-Path: Delivered-To: apmail-maven-dev-archive@www.apache.org Received: (qmail 87149 invoked from network); 2 Jan 2010 17:55:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jan 2010 17:55:43 -0000 Received: (qmail 89417 invoked by uid 500); 2 Jan 2010 17:55:42 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 89300 invoked by uid 500); 2 Jan 2010 17:55:41 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 89290 invoked by uid 99); 2 Jan 2010 17:55:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jan 2010 17:55:41 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dantran@gmail.com designates 209.85.211.203 as permitted sender) Received: from [209.85.211.203] (HELO mail-yw0-f203.google.com) (209.85.211.203) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jan 2010 17:55:34 +0000 Received: by ywh41 with SMTP id 41so29921103ywh.0 for ; Sat, 02 Jan 2010 09:55:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=2s+5I8Ja0vHLWFIn7NrxX+SXS8CN1EP42NT0mgFPXqU=; b=F6Gj2rm1iOdcEkgxbe9coZZk17FRQbH42L5HNa/fd7YNqiiE6wjQPphvjdURXleOlM WrOAsLfak4p3Vayxt2t3lHWvenSfy/UP9klbphjGzi+S37l5fSKP0/4tmskXKdxGPYxf 6PsABmTLbKQyy11UaDB12PkTuIkDS3fzHWux8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=ic4TM1poEtH4JyAAWY8jyHD2hKbNhtwc6NKNdujpZwsCAHnmiVkBoayFyrorzMrV/T lZvRC9Symm+A7VGSdjDtI3utEmDSiYDGMsVYYB7Jivy66U2atgKrnwpV0X4mEkVkNmpA PvenS5qVTZTFfti2lVRWpVHFaHXa/dkxBgOhs= MIME-Version: 1.0 Received: by 10.101.203.24 with SMTP id f24mr11952237anq.122.1262454913189; Sat, 02 Jan 2010 09:55:13 -0800 (PST) Date: Sat, 2 Jan 2010 09:55:13 -0800 Message-ID: Subject: Re: svn commit: r894515 - in /maven/plugins/trunk/maven-dependency-plugin/src: it/copy-and-unpack-with-alternate-local-repo/ it/copy/ main/java/org/apache/maven/plugin/dependency/ main/java/org/apache/maven/plugin/dependency/fromConfiguration/ main/j From: Dan Tran To: Maven Developers List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Benjamin Sorry, did not see your comment until today, will look into it Thanks -Dan On Sat, Jan 2, 2010 at 3:16 AM, Benjamin Bentmann wrote: > Hi Dan, > >>> Author: dantran >>> Date: Tue Dec 29 23:33:02 2009 >>> New Revision: 894515 >>> >>> URL: http://svn.apache.org/viewvc?rev=3D894515&view=3Drev >>> Log: >>> MDEP-179:Add ability to use an alternate repository at copy and unpack >>> mojo's execution time >>> >>> + =C2=A0 =C2=A0+ =C2=A0 =C2=A0/** >>> + =C2=A0 =C2=A0 * @return Returns the local. >>> + =C2=A0 =C2=A0 */ >>> + =C2=A0 =C2=A0protected ArtifactRepository getLocal () >>> + =C2=A0 =C2=A0{ >>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0if ( this.localRepository !=3D null ) >>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0{ >>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return this.localRepository; >>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0} >>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0+ =C2=A0 =C2=A0 =C2=A0 =C2=A0if ( this.alt= ernateLocalRepository !=3D null ) >>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0{ >>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0//create a temporary local r= epository with unique id >>> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0this.localRepository =3D new= DefaultArtifactRepository( >>> Long.toHexString( System.currentTimeMillis() ), "file://" + >>> this.alternateLocalRepository.getAbsolutePath(), new >>> DefaultRepositoryLayout() ); >> >> Directly using implementation classes instead of interfaces/components i= s >> bad with regard to future refactoring of Maven internals. Please use the >> ArtifactRepositoryFactory instead of new DefaultArtifactRepository(). > > Ping > > > Benjamin > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > For additional commands, e-mail: dev-help@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For additional commands, e-mail: dev-help@maven.apache.org