Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 44370 invoked from network); 9 Mar 2011 04:12:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Mar 2011 04:12:15 -0000 Received: (qmail 52843 invoked by uid 500); 9 Mar 2011 04:12:14 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 52748 invoked by uid 500); 9 Mar 2011 04:12:14 -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 52740 invoked by uid 99); 9 Mar 2011 04:12:14 -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 04:12:13 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of garydgregory@gmail.com designates 209.85.215.171 as permitted sender) Received: from [209.85.215.171] (HELO mail-ey0-f171.google.com) (209.85.215.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Mar 2011 04:12:09 +0000 Received: by eydd26 with SMTP id d26so42145eyd.30 for ; Tue, 08 Mar 2011 20:11: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; bh=C4Z44YjDzacnUAdfkBuZXecpjVBoVrFyvRYPM0SG1pY=; b=Nf0rPv/X+OK1QbSS0umJqMmQ5EV4W285bfW58855/GphoxTQFPAYmTXm7GWHY1SQBv jEqAcuZTOjyYxrsPW2p4HnvmZoTu5zfG51oYzgv99lJNgQd1P2BGFYEnojDr4c5WQ1+u q88jFHfZyAEPg6zc16ciev+8k4LaNxGJ5jneY= 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; b=lFphwYCOjLo3S8tqZAfQwKHp2adEyH4OPLjrHgZ4sWCad3QEt5QNn/r5TqQuYIEDoe TARwZ5571RZfm+9ohhr61nD8NGVr+W0JFjRPv8nyY0abj1lpFIJWsKSIJVYrvxjLkkVs 5NZBQTw7j4pQpNilqwjzRslF1skCw3Fv8BjxA= MIME-Version: 1.0 Received: by 10.14.30.134 with SMTP id k6mr1486460eea.35.1299643907172; Tue, 08 Mar 2011 20:11:47 -0800 (PST) Received: by 10.14.119.141 with HTTP; Tue, 8 Mar 2011 20:11:47 -0800 (PST) In-Reply-To: References: <20110309000212.70CC32388A66@eris.apache.org> Date: Tue, 8 Mar 2011 23:11:47 -0500 Message-ID: Subject: Re: svn commit: r1079608 - /commons/proper/codec/trunk/pom.xml From: Gary Gregory To: sebb Cc: Commons Developers List Content-Type: multipart/alternative; boundary=001485f20c586beb5f049e04ed1a --001485f20c586beb5f049e04ed1a Content-Type: text/plain; charset=UTF-8 Thank you, I understand now. I will go the Nexus route first... Gary On Tue, Mar 8, 2011 at 10:55 PM, sebb wrote: > 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. > Codec > > 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 > wasted > > 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 > work. > > 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, wrote: > >> >>> > Author: ggregory > >> >>> > Date: Wed Mar 9 00:02:12 2011 > >> >>> > New Revision: 1079608 > >> >>> > > >> >>> > URL: http://svn.apache.org/viewvc?rev=1079608&view=rev > >> >>> > 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, > which > >> >>> is not good when there are two copies of the same classes. > >> >>> > >> >>> > Modified: > >> >>> > commons/proper/codec/trunk/pom.xml > >> >>> > > >> >>> > Modified: commons/proper/codec/trunk/pom.xml > >> >>> > URL: > >> >>> > > >> >>> > > http://svn.apache.org/viewvc/commons/proper/codec/trunk/pom.xml?rev=1079608&r1=1079607&r2=1079608&view=diff > >> >>> > > >> >>> > > >> >>> > > ============================================================================== > >> >>> > --- commons/proper/codec/trunk/pom.xml (original) > >> >>> > +++ commons/proper/codec/trunk/pom.xml Wed Mar 9 00:02:12 2011 > >> >>> > @@ -25,7 +25,7 @@ > >> >>> > 18 > >> >>> > > >> >>> > 4.0.0 > >> >>> > - commons-codec > >> >>> > + org.apache.commons > >> >>> > commons-codec > >> >>> > 1.5-SNAPSHOT > >> >>> > 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 > > > -- Thank you, Gary http://garygregory.wordpress.com/ http://garygregory.com/ http://people.apache.org/~ggregory/ http://twitter.com/GaryGregory --001485f20c586beb5f049e04ed1a--