Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3FDDB6E9D for ; Fri, 20 May 2011 18:58:23 +0000 (UTC) Received: (qmail 13546 invoked by uid 500); 20 May 2011 18:58:22 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 13497 invoked by uid 500); 20 May 2011 18:58:21 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 13490 invoked by uid 99); 20 May 2011 18:58:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 May 2011 18:58:21 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of stachoo@gmail.com designates 74.125.82.48 as permitted sender) Received: from [74.125.82.48] (HELO mail-ww0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 May 2011 18:58:15 +0000 Received: by wwi18 with SMTP id 18so2951205wwi.5 for ; Fri, 20 May 2011 11:57:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=iELg9JeEziy11ZTv75TMssw7768s9F01AqZNxoAramE=; b=j42jmawMbHUJ253PnnHKa8BLSXcbCT3DbdXTc0DZDtcQqgtxmOj/86bmreS4jc+QCG NbzR4fduBYtYDJDMUGKRG3gbL3CSxT5obi0+h3uy7WleOeUIvjdB4bU4VS5/AIaR5oeZ I08NaxTP435i+HR9w+8AdDYS2x6Y2UHKB1MpU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=ooPuQpPbzsPa7QzF5kT8RkMEefnZJquFvK5mwTsXhpCDbRCVme0bf4DwNwHmZpCSW+ XGJunq0yi7pOiWX+npovLm59MjoxME5gKjwyll+JfLNyko7CkAySuN+AeoAranDfZY7n MFcrEVBZ0mgrrVmaBqFxG4LB37pZTqHoelEm0= MIME-Version: 1.0 Received: by 10.216.142.133 with SMTP id i5mr534914wej.43.1305917874256; Fri, 20 May 2011 11:57:54 -0700 (PDT) Sender: stachoo@gmail.com Received: by 10.216.22.197 with HTTP; Fri, 20 May 2011 11:57:54 -0700 (PDT) In-Reply-To: <2D127F11DC79714E9B6A43AC9458147FBAD4301B@suex07-mbx-03.ad.syr.edu> References: <2D127F11DC79714E9B6A43AC9458147FBAD42FCA@suex07-mbx-03.ad.syr.edu> <2D127F11DC79714E9B6A43AC9458147FBAD42FCD@suex07-mbx-03.ad.syr.edu> <2D127F11DC79714E9B6A43AC9458147FBAD42FD9@suex07-mbx-03.ad.syr.edu> <2D127F11DC79714E9B6A43AC9458147FBAD4301B@suex07-mbx-03.ad.syr.edu> Date: Fri, 20 May 2011 20:57:54 +0200 X-Google-Sender-Auth: Uh2vuetJG02q69_ynIw8VyHm4U8 Message-ID: Subject: Re: Branch 3.x build failure w/1.5: solr/contrib/clustering/ [was: [JENKINS-MAVEN] Lucene-Solr-Maven-3.x #128: POMs out of sync] From: Stanislaw Osinski To: dev@lucene.apache.org Content-Type: multipart/alternative; boundary=0016e6d64c28003b0804a3b9b3c5 --0016e6d64c28003b0804a3b9b3c5 Content-Type: text/plain; charset=ISO-8859-1 > > The jar checked into SVN, both on trunk and on branch_3x, is > solr/contrib/clustering/lib/simple-xml-2.3.5.jar, which means that the Ant > build is using this older version on both branches - shouldn't this also be > upgraded to 2.4.1? > In fact, Solr clustering plugin just needs a number of annotations from that JAR to compile, and these didn't change, so 2.3.5 should do the job just fine. > I'm assuming trunk does not suffer from this issue? > > Right, the official v3.5.0 carrot2-core POM includes the simple-xml > dependency, while the Solr version (at > solr/contrib/clustering/lib/solr-carrot2-core-pom.xml.template) does not (or > did not, until you added it a few minutes ago). > > > One more thing: SimpleXML is required during compilation > > (annotations), but it's not needed when running clustering > > within Solr. So I think a dependency with the "compile" > > scope should do too. > > I think "provided" scope is the one we want here, since we want to exclude > it as a transitive dependency (just like the servlet-api jar): > > < > http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope > > > Good point! I've just made that change locally and it turns out that "provided" is not transitive, so we'd need to add the dependency to solr-clustering POM (instead of Carrot2's). I'm fine with either solution (keeping SimpleXML in Carrot2 POM with the default scope or in solr-clustering with provided scope), though I'm assuming the latter will save the consumers one JAR in their classpaths. Just let me know which one you'd prefer. S. --0016e6d64c28003b0804a3b9b3c5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
The jar checked into SVN, both on trunk and on branch_3x, is solr/contrib= /clustering/lib/simple-xml-2.3.5.jar, which means that the Ant build is usi= ng this older version on both branches - shouldn't this also be upgrade= d to 2.4.1?

In fact, Solr clustering plugin just needs= a number of annotations from that JAR to compile, and these didn't cha= nge, so 2.3.5 should do the job just fine.

> I'm assuming trunk does not suffer from this iss= ue?

Right, the official v3.5.0 carrot2-core POM includes the simple-xml d= ependency, while the Solr version (at solr/contrib/clustering/lib/solr-carr= ot2-core-pom.xml.template) does not (or did not, until you added it a few m= inutes ago).

> One more thing: SimpleXML is required during compilation
> (annotations), but it's not needed when running clustering
> within Solr. So I think a dependency with the "compile"
> scope should do too.

I think "provided" scope is the one we want here, since we = want to exclude it as a transitive dependency (just like the servlet-api ja= r):

<http://maven.= apache.org/guides/introduction/introduction-to-dependency-mechanism.html#De= pendency_Scope>

Good point! I've just made that change= locally and it turns out that "provided" is not transitive, so w= e'd need to add the dependency to=A0solr-clustering POM (instead of Car= rot2's). I'm fine with either solution (keeping SimpleXML in Carrot= 2 POM with the default scope or in=A0solr-clustering with provided scope), = though I'm assuming the latter will save the consumers one JAR in their= classpaths. Just let me know which one you'd prefer.

S.
--0016e6d64c28003b0804a3b9b3c5--