Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 88931 invoked from network); 9 Mar 2011 03:56:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Mar 2011 03:56:13 -0000 Received: (qmail 32458 invoked by uid 500); 9 Mar 2011 03:56:13 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 32372 invoked by uid 500); 9 Mar 2011 03:56:13 -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 32364 invoked by uid 99); 9 Mar 2011 03:56:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Mar 2011 03:56:12 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sebbaz@gmail.com designates 209.85.216.43 as permitted sender) Received: from [209.85.216.43] (HELO mail-qw0-f43.google.com) (209.85.216.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Mar 2011 03:56:08 +0000 Received: by qwb7 with SMTP id 7so95199qwb.30 for ; Tue, 08 Mar 2011 19:55:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=cI+l0JGjok3qPYVxNACn646ymB/GNNf89e0NprWcqHw=; b=AVQ+dElxKgGwXBjDAI6NtvRvdfFa9lDbTa153FFvNW9D+WM5qvJo3i42G6CA6vsf2s jx8rBob3W8i2M+4utmEk2mTaQpaqt5RpOFPpihygJqt8x5QMuVtJJHl0KHgGDTvEn1oD UqdGSqTrrdfVtbioWwHSaDBuQ7hmrwUxDynrw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=kpKKFgrFAI6Ub7jkbm5FQO24/Obz8FC0UA9fuD0Xc/XYk78CaqdJVrEDDKB2IubT23 i6WmGEfBqDQ6RA/kvi8So/nbVgQWrxvDd4ZlCIkUQBJ+aGmaxPcOlQjJS2V4BxvfZ7hW uiwJ1SHUcV4bocbFtQ2oD5+a/ZsTSNNz1SC9w= MIME-Version: 1.0 Received: by 10.224.135.223 with SMTP id o31mr4129446qat.319.1299642946876; Tue, 08 Mar 2011 19:55:46 -0800 (PST) Received: by 10.229.24.69 with HTTP; Tue, 8 Mar 2011 19:55:46 -0800 (PST) In-Reply-To: References: <20110309000212.70CC32388A66@eris.apache.org> Date: Wed, 9 Mar 2011 03:55:46 +0000 Message-ID: Subject: Re: svn commit: r1079608 - /commons/proper/codec/trunk/pom.xml From: sebb To: Gary Gregory Cc: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 9 March 2011 02:46, Gary Gregory wrote: > > > On Tue, Mar 8, 2011 at 9:34 PM, sebb wrote: >> >> On 9 March 2011 02:31, Gary Gregory wrote: >> > Does having the old style of groupId mean that deploying will not work= , >> > per >> > http://wiki.apache.org/commons/UsingNexus#top >> > >> > "All Commons components that use the org.apache.commons groupId are >> > already >> > set up to use Nexus." >> > >> > And if not... what happens? >> >> Nexus won't let you upload. >> >> Two options: >> - use the old methods. These can work, but are error prone. >> - use JIRA to request a Nexus entry for the project. >> > > Ug, I cannot change the groupId because I cannot change the package. Code= c > 1.5 fixes some long standing bugs introduced in 1.4. > > If I change the groupId... Are we talking end of the Maven world or waste= d > memory? Neither. > I do not understand enough about the Maven guts to grok the consequences.= .. Maven uses the groupId:artifactId tuple to decide if two components are the same. So if VFS depends on c-logging:1 and NET:2 and NET:2 uses c-logging:2.1 Maven will add only logging:2.1 to the classpath. But if c-logging:2.1 has a different groupId - e.g. o.a.c-logging - from c-logging:1, both will end up on the classpath. Not good. Now there is a relocation POM which is supposed to tell Maven that c-logging is the same as o.a.c-logging. However, the relocation is stored only under original groupId, and AFAIK only on the latest version. For the relocation to work, Maven would have to read all the poms. In the example above, it would have to start with c-logging:1, and find the relocation pom in (say) c-logging:1.13. I tried to find out if Maven does this, but noone on the Maven list could say for sure. I suspect not, because local workspaces don't have poms apart from the ones that have been directly referenced. The info needs to be in the local workspace otherwise offline mode won't wo= rk. I have not found time to test how /if it works. I think this will require a released component with a relocation pom, plus several dummy projects that use versions either side of the relocation. Then a test to show the classpath. Then delete the local copy of the relocation pom and see if Maven finds it. The same considerations apply to changing the artifactId. > Thanks in advance for any clarification. > > Gary > >> >> > Gary >> > >> > On Tue, Mar 8, 2011 at 9:28 PM, Gary Gregory >> > wrote: >> >> >> >> Reverting and will do for 2.0. >> >> >> >> Gary >> >> >> >> On Tue, Mar 8, 2011 at 8:00 PM, sebb wrote: >> >>> >> >>> On 9 March 2011 00:02, =A0 wrote: >> >>> > Author: ggregory >> >>> > Date: Wed Mar =A09 00:02:12 2011 >> >>> > New Revision: 1079608 >> >>> > >> >>> > URL: http://svn.apache.org/viewvc?rev=3D1079608&view=3Drev >> >>> > Log: >> >>> > Use org.apache.commons groupId >> >>> >> >>> If you change the groupId you'll probably need to change the package >> >>> name as well .. >> >>> >> >>> Otherwise Maven can add two copies of the jar to the classpath, whic= h >> >>> is not good when there are two copies of the same classes. >> >>> >> >>> > Modified: >> >>> > =A0 =A0commons/proper/codec/trunk/pom.xml >> >>> > >> >>> > Modified: commons/proper/codec/trunk/pom.xml >> >>> > URL: >> >>> > >> >>> > http://svn.apache.org/viewvc/commons/proper/codec/trunk/pom.xml?re= v=3D1079608&r1=3D1079607&r2=3D1079608&view=3Ddiff >> >>> > >> >>> > >> >>> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D >> >>> > --- commons/proper/codec/trunk/pom.xml (original) >> >>> > +++ commons/proper/codec/trunk/pom.xml Wed Mar =A09 00:02:12 2011 >> >>> > @@ -25,7 +25,7 @@ >> >>> > =A0 =A0 18 >> >>> > =A0 >> >>> > =A0 4.0.0 >> >>> > - =A0commons-codec >> >>> > + =A0org.apache.commons >> >>> > =A0 commons-codec >> >>> > =A0 1.5-SNAPSHOT >> >>> > =A0 Commons Codec >> >>> > >> >>> > >> >>> > >> >>> >> >>> --------------------------------------------------------------------= - >> >>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >> >>> For additional commands, e-mail: dev-help@commons.apache.org >> >>> >> >> >> >> >> >> >> >> -- >> >> Thank you, >> >> Gary >> >> >> >> http://garygregory.wordpress.com/ >> >> http://garygregory.com/ >> >> http://people.apache.org/~ggregory/ >> >> http://twitter.com/GaryGregory >> > >> > >> > >> > -- >> > Thank you, >> > Gary >> > >> > http://garygregory.wordpress.com/ >> > http://garygregory.com/ >> > http://people.apache.org/~ggregory/ >> > http://twitter.com/GaryGregory >> > > > > > -- > Thank you, > Gary > > http://garygregory.wordpress.com/ > http://garygregory.com/ > http://people.apache.org/~ggregory/ > http://twitter.com/GaryGregory > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org