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 3AC84EA4D for ; Tue, 12 Feb 2013 20:32:35 +0000 (UTC) Received: (qmail 98587 invoked by uid 500); 12 Feb 2013 20:32:34 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 98543 invoked by uid 500); 12 Feb 2013 20:32:34 -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 98534 invoked by uid 99); 12 Feb 2013 20:32:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2013 20:32:33 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of serera@gmail.com designates 74.125.82.172 as permitted sender) Received: from [74.125.82.172] (HELO mail-we0-f172.google.com) (74.125.82.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2013 20:32:25 +0000 Received: by mail-we0-f172.google.com with SMTP id x10so429339wey.17 for ; Tue, 12 Feb 2013 12:32:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=3yqQZppEp9hH4pcd6OeFmBqTabJOuKOnRd2V2CrNIVc=; b=vNX9xFO9we/MT8jEAMq0tzepNaQU4TnPxwuqsZmRAIuNso75s43aAHsCpAnSPpu1Hw X6xhok4xHmmJrc0Xpu/yWRZ0Sb5edC7YW0c1W0DcrON2iDQfsD3SF2ijqk7n805ZRiD3 54MgAJ4GhMUTltRlUZTMKr+3tlsjxc18AM/TAOVI6dE8Dqw2i92LML975siZIYLH70aL LvgkV24kL6MxfECWCFC+c9NJGJXJFCPgOrYMl3r2BBlTqPDEkVmwGiV40GFg3urAfI1v 2BqKtLYKmA87gkoY86/NFAI1oH86CR4ASTxuCRD7soi4GmJqN5b1qb7RMAl5XzX1y3VO x2Tg== X-Received: by 10.194.75.196 with SMTP id e4mr33581404wjw.44.1360701125469; Tue, 12 Feb 2013 12:32:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.9.227 with HTTP; Tue, 12 Feb 2013 12:31:45 -0800 (PST) In-Reply-To: <79E47DD7-FC3F-4C05-9EE8-959BE69BF95A@gmail.com> References: <1879645011.1734.1360696305484.JavaMail.hudson@aegis> <79E47DD7-FC3F-4C05-9EE8-959BE69BF95A@gmail.com> From: Shai Erera Date: Tue, 12 Feb 2013 22:31:45 +0200 Message-ID: Subject: Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #244: POMs out of sync To: "dev@lucene.apache.org" Content-Type: multipart/alternative; boundary=047d7bb049c63aa56c04d58ceb93 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bb049c63aa56c04d58ceb93 Content-Type: text/plain; charset=ISO-8859-1 Ahmm.. or I'll let Jenkins catch those :). I thought it can be part of 'ant precommit' or something, if it's more complex, we can let Jenkins catch those. They're not very frequent. Shai On Tue, Feb 12, 2013 at 10:06 PM, Steve Rowe wrote: > 'ant run-maven-build' will interpolate the Maven POM templates and place > them in maven-build/, then run the equivalent of 'mvn install', which > compiles/jars/tests/installs-to-local-repo all Lucene and Solr modules. > This is how Jenkins runs the Maven tests. > > If you're willing to run Maven directly, it would be faster to install > just the Lucene modules, then run tests only in the facet module, e.g.: > > ant get-maven-poms # Interpolate POM templates and > populate maven-build/ > cd maven-build > mvn --non-recursive install # Install the grandparent POM in the > local repository > cd lucene > mvn -DskipTests install # Compile/jar/install all Lucene > modules > cd facet > mvn test > > It would be faster still to individually install only those modules on > which the facet module depends (I think this is: the grandparent POM, the > lucene parent POM, lucene-core and the lucene test-framework), but the > typing time to do that might be greater than the execution time of the > simpler recipe above. On the other hand, a script would make the typing > time irrelevant. Let me know if you're interested and I'll type it up. > > Steve > > On Feb 12, 2013, at 2:39 PM, Shai Erera wrote: > > > Thanks! Is there anything we could have done while testing locally to > test it? e.g. ant-check-maven or something? > > > > Shai > > > > > > On Tue, Feb 12, 2013 at 9:28 PM, Steve Rowe wrote: > > Looks like the facet POM doesn't include the (new) src/resources/ > directory, so the SPI file located there doesn't make into the jar, and the > tests fail. > > > > I'll work on a fix, should be trivial. > > > > Steve > > > > On Feb 12, 2013, at 2:19 PM, Shai Erera wrote: > > > > > Hmm, doesn't fail for me. Is it related to MAVEN maybe? Do Codecs > (SPI) need to be handled somehow special with MAVEN? > > > > > > Shai > > > > > > On Tue, Feb 12, 2013 at 9:11 PM, Apache Jenkins Server < > jenkins@builds.apache.org> wrote: > > > 56FD69FD2D611E4C > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org > > For additional commands, e-mail: dev-help@lucene.apache.org > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: dev-help@lucene.apache.org > > --047d7bb049c63aa56c04d58ceb93 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Ahmm.. or I'll let Jenkins catch those :).

I th= ought it can be part of 'ant precommit' or something, if it's m= ore complex, we can let Jenkins catch those. They're not very frequent.=

Shai


On Tue, Feb 12, 2013 at 10:06 PM, Steve Rowe <sarowe@gmail.com>= wrote:
'ant run-maven-build' will interpola= te the Maven POM templates and place them in maven-build/, then run the equ= ivalent of 'mvn install', which compiles/jars/tests/installs-to-loc= al-repo all Lucene and Solr modules. =A0This is how Jenkins runs the Maven = tests.

If you're willing to run Maven directly, it would be faster to install = just the Lucene modules, then run tests only in the facet module, e.g.:

=A0 =A0 =A0 =A0 ant get-maven-poms =A0 =A0 =A0 =A0 =A0 =A0# Interpolate POM= templates and populate maven-build/
=A0 =A0 =A0 =A0 cd maven-build
=A0 =A0 =A0 =A0 mvn --non-recursive install =A0 # Install the grandparent P= OM in the local repository
=A0 =A0 =A0 =A0 cd lucene
=A0 =A0 =A0 =A0 mvn -DskipTests install =A0 =A0 =A0 # Compile/jar/install a= ll Lucene modules
=A0 =A0 =A0 =A0 cd facet
=A0 =A0 =A0 =A0 mvn test

It would be faster still to individually install only those modules on whic= h the facet module depends (I think this is: the grandparent POM, the lucen= e parent POM, lucene-core and the lucene test-framework), but the typing ti= me to do that might be greater than the execution time of the simpler recip= e above. =A0On the other hand, a script would make the typing time irreleva= nt. =A0Let me know if you're interested and I'll type it up.

Steve

On Feb 12, 2013, at 2:39 PM, Sh= ai Erera <serera@gmail.com> w= rote:

> Thanks! Is there anything we could have done while testing locally to = test it? e.g. ant-check-maven or something?
>
> Shai
>
>
> On Tue, Feb 12, 2013 at 9:= 28 PM, Steve Rowe <sarowe@gmail.com<= /a>> wrote:
> Looks like the facet POM doesn't include the (new) src/resources/ = directory, so the SPI file located there doesn't make into the jar, and= the tests fail.
>
> I'll work on a fix, should be trivial.
>
> Steve
>
> On Feb 12,
2013, at 2:19 P= M, Shai Erera <serera@gmail.com&= gt; wrote:
>
> > Hmm, doesn't fail for me. Is it related to MAVEN maybe? Do Co= decs (SPI) need to be handled somehow special with MAVEN?
> >
> > Shai
> >
> > On Tue, Feb 12, 2013 = at 9:11 PM, Apache Jenkins Server <jenkins@builds.apache.org> wrote:
> > 56FD69FD2D611E4C
> >
> >
>
>
> ---------------------------------------------------------------------<= br> > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


--047d7bb049c63aa56c04d58ceb93--