Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9130A9D76 for ; Tue, 10 Apr 2012 19:38:54 +0000 (UTC) Received: (qmail 23213 invoked by uid 500); 10 Apr 2012 19:38:51 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 23134 invoked by uid 500); 10 Apr 2012 19:38:51 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 23125 invoked by uid 99); 10 Apr 2012 19:38:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2012 19:38:51 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [128.230.18.92] (HELO smtp2.syr.edu) (128.230.18.92) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2012 19:38:41 +0000 Received: from suex10-hub-02.ad.syr.edu (suex10-hub-02.ad.syr.edu [128.230.108.125]) by smtp2.syr.edu (8.14.3/8.14.3) with ESMTP id q3AJcJCG024866 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Tue, 10 Apr 2012 15:38:19 -0400 Received: from SUEX10-MBX-03.ad.syr.edu ([128.230.108.186]) by suex10-hub-02.ad.syr.edu ([128.230.108.125]) with mapi id 14.02.0247.003; Tue, 10 Apr 2012 15:38:19 -0400 From: Steven A Rowe To: "solr-user@lucene.apache.org" Subject: RE: Moving to Maven from Ant solr.build.dir Not Found Thread-Topic: Moving to Maven from Ant solr.build.dir Not Found Thread-Index: AQHNFy79pHM2tOnMZ06H6ylvQ418nZaUNFmggABozID//73zsIAASMUA///HwECAAEi7gP//vpDA Date: Tue, 10 Apr 2012 19:38:19 +0000 Message-ID: <6C78E97C707B5B4C8CC61D44F87545861B733D@SUEX10-mbx-03.ad.syr.edu> References: <4F845228.5020608@gmail.com> <6C78E97C707B5B4C8CC61D44F87545861B0907@SUEX10-mbx-03.ad.syr.edu> <4F8475EF.2090806@gmail.com> <6C78E97C707B5B4C8CC61D44F87545861B4E51@SUEX10-mbx-03.ad.syr.edu> <4F847B92.30004@gmail.com> <6C78E97C707B5B4C8CC61D44F87545861B71A6@SUEX10-mbx-03.ad.syr.edu> <4F848965.8080504@gmail.com> In-Reply-To: <4F848965.8080504@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [128.230.84.130] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7498,1.0.260,0.0.0000 definitions=2012-04-10_05:2012-04-10,2012-04-09,1970-01-01 signatures=0 X-Proofpoint-Spam-Reason: safe Eli, Sorry, I don't have any experience using Solr in this way. Has anybody else here successfully run Solr when it's included as a war dep= endency in an external Maven-based war project, by running "mvn jetty:run e= xploded" from the external project? FYI, The nightly download page I pointed you to includes a *binary* distrib= ution, and you can run Solr using such a binary distribution by following t= he Solr tutorial I linked to. (This is the standard way to "get Solr runni= ng".) Steve -----Original Message----- From: Eli Finkelshteyn [mailto:iefinkel@gmail.com]=20 Sent: Tuesday, April 10, 2012 3:26 PM To: solr-user@lucene.apache.org Subject: Re: Moving to Maven from Ant solr.build.dir Not Found I'm running mvn jetty:run-exploded on my own project. My dependencies are: org.apache.solr solr 4.0-SNAPSHOT war org.apache.solr solr-core 4.0-SNAPSHOT org.apache.solr solr-analysis-extras 4.0-SNAPSHOT org.apache.solr solr-commons-csv 4.0-SNAPSHOT org.apache.lucene lucene-core 4.0-SNAPSHOT jar org.apache.lucene lucene-spatial 4.0-SNAPSHOT org.apache.lucene lucene-queryparser 4.0-SNAPSHOT org.apache.lucene lucene-analyzers-common 4.0-SNAPSHOT org.apache.lucene lucene-queries 4.0-SNAPSHOT I know I could download the snapshot manually, but I'd much prefer to do th= at through Maven since I don't need to modify source at all. Eli On 4/10/12 3:14 PM, Steven A Rowe wrote: > You didn't answer my question about where you are running "mvn jetty:run-= exploded" - is it in your own project, or from the Solr sources? > > Exactly which Solr Maven artifacts are you including as dependencies=20 > are in your project's POM? (Can you copy/paste the =20 > section?) > >> Basically, I was just doing that to try to get Solr up and running. I=20 >> haven't found too many clear guides on this point, so I could=20 >> definitely be doing something wrong here. > Have you seen? > > If you haven't already done so, you can download a recent 4.0 snapshot by= following the "Download" link next to "Trunk (4.x-SNAPSHOT)" from. > > Steve > > -----Original Message----- > From: Eli Finkelshteyn [mailto:iefinkel@gmail.com] > Sent: Tuesday, April 10, 2012 2:28 PM > To: solr-user@lucene.apache.org > Subject: Re: Moving to Maven from Ant solr.build.dir Not Found > > Hey Steven, > I'm not modifying Solr sources at all. I just have a project that's built= on top of Solr using ant. I'd like to move it to use maven instead of ant.= The way I was going about this was just adding in all parts of Solr that i= t's using as dependencies in Maven. I wasn't using a local repo for this at= all, and instead just pulling everything from http://repository.apache.org= /snapshots. I'm using version 4.0-SNAPSHOT for everything right now. > > I'm running mvn jetty:run-exploded after compiling right now (or as my bu= ild target in Eclipse as per that guide I originally posted). > Basically, I was just doing that to try to get Solr up and running. I hav= en't found too many clear guides on this point, so I could definitely be do= ing something wrong here. > > I'm fine with maven being officially unsupported as long as I can get thi= ngs working. I'm not doing anything too fancy or out of the ordinary, so I'= m thinking this shouldn't be too bad. > > Thanks again for the help! > > Eli > > On 4/10/12 2:12 PM, Steven A Rowe wrote: >> Eli, >> >> Could you please more fully describe what you're doing? >> >> Are you modifying Solr sources, and then compiling& installing the res= ulting modifications to your local Maven repository? >> >> Or do you have a project that doesn't include any Solr sources at all, b= ut only depends on Solr artifacts pulled in via Maven? >> >> Also, which branch are you using? Trunk (will be 4.0 when released)? I= f you're using branch_3x, my recommendation is that you instead use release= d artifacts instead of snapshots. >> >> Where are you running "mvn jetty:run-exploded"? >> >>> I'm not using ant at all, and would really like to keep it that way=20 >>> if at all possible. >> Well, the official Lucene/Solr build is Ant. Using Maven to build Lucen= e/Solr is "officially unsupported". So depending on what you're doing, it = may not be possible to avoid Ant. >> >> Steve >> >> -----Original Message----- >> From: Eli Finkelshteyn [mailto:iefinkel@gmail.com] >> Sent: Tuesday, April 10, 2012 2:03 PM >> To: solr-user@lucene.apache.org >> Subject: Re: Moving to Maven from Ant solr.build.dir Not Found >> >> Hey Steve, >> Thanks for the help! Ok, so per those instructions, I'm using a pom to p= ull dependencies from http://repository.apache.org/snapshots. >> Nonetheless, that weird solr.build.dir error still appears. Is there som= e place I need to specify this that I don't know about? Should a build dir = be generated at some point during the Maven install process or some such? F= or clarity, all I'm doing right now is just mvn installing and then trying = mvn jetty:run-exploded. I'm not using ant at all, and would really like to = keep it that way if at all possible. >> >> Eli >> >> On 4/10/12 11:56 AM, Steven A Rowe wrote: >>> Hi Eli, >>> >>> The author of the blog post you mentioned appears to be unaware of the = Maven POMs that are already included in Subversion for both Lucene and Solr= . See. >>> >>> Because of the complex nature of the Ant build, which the Maven POMs ca= nnot entirely duplicate, these POMs are not usable as the basis for IDE pro= ject bootstrapping. Instead, IntelliJ and Eclipse configurations are separ= ately available: see and. >>> >>> Steve >>> >>> -----Original Message----- >>> From: Eli Finkelshteyn [mailto:iefinkel@gmail.com] >>> Sent: Tuesday, April 10, 2012 11:31 AM >>> To: solr-user@lucene.apache.org >>> Subject: Moving to Maven from Ant solr.build.dir Not Found >>> >>> Hi Folks, >>> I've been tasked with moving a Solr project I know little about from An= t to Maven. I've found all the dependencies I need and I'm not seeing any e= rrors in my IDE. Everything compiles and installs just fine. Problem is, wh= en I try to start things up in Jetty, I get errors. The first main one I ge= t is: >>> >>> SEVERE: null:org.apache.solr.common.SolrException: No system=20 >>> property or default value specified for solr.build.dir=20 >>> value:${solr.build.dir}/ >>> >>> I have: >>> >>> >>> ../build/solr-maven >>> >>> >>> in my pom.xml, so I'm not sure why this comes up. Anyway, it's quickly = followed by: >>> >>> java.lang.ClassNotFoundException: >>> org.apache.solr.servlet.SolrUpdateServlet >>> >>> I'm not sure if the two are related, but when googling I can't seem to = find anyone with the same problem. For reference, I started the bulk of my = move from ant to maven using the instructions here, and then extrapolated from= that to add in custom code and dependencies for my project. Any ideas what= I could be doing wrong? >>> >>> Thanks for any help, >>> Eli