You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Charlie Hubbard <ch...@gmail.com> on 2015/06/07 20:37:56 UTC

How to use Solr 5 with grade/maven/ivy?

So I've been trying to utilize Solr, and I integrated with Solr 4.x but
using its war file.  I wanted to use a dependency management tool so it was
easier to migrate between versions.  I've read several blogs on how to
integrate Solr with other dependency management tools and they all use the
war file dependency to download Solr and integrate with various plugins.
Now Solr 5 doesn't publish a war file because it must run on Jetty so the
individual war file isn't available through maven.  But managing these
dependencies using Solr is extremely helpful.  So what is the way you can
manage Solr 5 using a dependency tool without scraping the war file out of
the download of Solr?  Is there a distribution of standalone Solr server
through maven that I could use since there is little hep with having 4.x on
maven since you can't upgrade it?

Charlie

Re: How to use Solr 5 with grade/maven/ivy?

Posted by Chris Hostetter <ho...@fucit.org>.
: I was hoping there was a solr server dependency package that I could
: declare against to get solr's standalone server which seems to be the
: direction the team is taking, and I want to stay in those lines for the
: future if that's the direction.

it's hard to understand what exactly your ultimate goal is as far as 
wanting to install via a "dependency management tool" -- because, to my 
mind, dependency management tools are all about intralangauge dependencies 
(ie: using ivy to download jars that are dependencies or transitive 
dependencies of other jars)

Solr, as a server, isn't really a "dependency" in that sense -- it's a 
service that you install and talk to from your applications (regardless of 
wether they are java applications, or python applications, or haskell 
applications - each of which would use their own system for 
installing "dependencies"

So how do you install other services?  

ie: do you use a database server like mysql or oracle?  do you use any 
(other) NoSql services like mongodb or hbase or cassandra? do you have a 
zookeeper quorum running somewhere?  how do you install any of those types 
of systems that your application deals with?  what langauges do you 
implement your applications in?  unless you are compliling to platforma 
native binaries, you are likeley using some kind of langauge runtime like 
the JVM, or python, or ruby correct?  how do you install those runtimes?

The answers to those questions can help folks advise you on options for 
how to manage Solr as a "dependecy" in a way that you may be comfortable 
with.


FWIW: If you haven't seen them already, Solr 5 does come with an 
installation script and init.d run scripts...

https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production


-Hoss
http://www.lucidworks.com/

Re: How to use Solr 5 with grade/maven/ivy?

Posted by Charlie Hubbard <ch...@gmail.com>.
Thanks Erick.  Just to clarify I don't have to have a war file.  And while
a war file makes moving between 4.x -> 5.x somewhat smoother it's really
about being able to use dependency management tools to manage whatever that
binary is.  The only problem is to get that 5.x war file you can't get it
through the dependency management tools.  You have to download the zip
package and extract it from there.

I was hoping there was a solr server dependency package that I could
declare against to get solr's standalone server which seems to be the
direction the team is taking, and I want to stay in those lines for the
future if that's the direction.

Charlie

On Sun, Jun 7, 2015 at 3:51 PM, Erick Erickson <er...@gmail.com>
wrote:

> Solr 5 _does_ distribute a war file so this shouldn't be a blocker
> short-term.
> Look in ..../server/webapps/solr.war. So there's no (short term) reason
> why it "must run on jetty". The _scripts_ use jetty but if you don't use
> the scripts....
>
> Here's a useful Wiki page with the current state of affairs:
> https://wiki.apache.org/solr/WhyNoWar (thanks Shawn!)
>
> We're _moving_ to not distributing a war file so you're absolutely
> correct to start
> planning on not having a war....
>
> Now, about the dependency management tool, I really haven't a clue so I'll
> defer
> that to people who know.
>
> Best,
> Erick
>
> Best,
> Erick
>
> On Sun, Jun 7, 2015 at 11:37 AM, Charlie Hubbard
> <ch...@gmail.com> wrote:
> > So I've been trying to utilize Solr, and I integrated with Solr 4.x but
> > using its war file.  I wanted to use a dependency management tool so it
> was
> > easier to migrate between versions.  I've read several blogs on how to
> > integrate Solr with other dependency management tools and they all use
> the
> > war file dependency to download Solr and integrate with various plugins.
> > Now Solr 5 doesn't publish a war file because it must run on Jetty so the
> > individual war file isn't available through maven.  But managing these
> > dependencies using Solr is extremely helpful.  So what is the way you can
> > manage Solr 5 using a dependency tool without scraping the war file out
> of
> > the download of Solr?  Is there a distribution of standalone Solr server
> > through maven that I could use since there is little hep with having 4.x
> on
> > maven since you can't upgrade it?
> >
> > Charlie
>

Re: How to use Solr 5 with grade/maven/ivy?

Posted by Erick Erickson <er...@gmail.com>.
Solr 5 _does_ distribute a war file so this shouldn't be a blocker short-term.
Look in ..../server/webapps/solr.war. So there's no (short term) reason
why it "must run on jetty". The _scripts_ use jetty but if you don't use
the scripts....

Here's a useful Wiki page with the current state of affairs:
https://wiki.apache.org/solr/WhyNoWar (thanks Shawn!)

We're _moving_ to not distributing a war file so you're absolutely
correct to start
planning on not having a war....

Now, about the dependency management tool, I really haven't a clue so I'll defer
that to people who know.

Best,
Erick

Best,
Erick

On Sun, Jun 7, 2015 at 11:37 AM, Charlie Hubbard
<ch...@gmail.com> wrote:
> So I've been trying to utilize Solr, and I integrated with Solr 4.x but
> using its war file.  I wanted to use a dependency management tool so it was
> easier to migrate between versions.  I've read several blogs on how to
> integrate Solr with other dependency management tools and they all use the
> war file dependency to download Solr and integrate with various plugins.
> Now Solr 5 doesn't publish a war file because it must run on Jetty so the
> individual war file isn't available through maven.  But managing these
> dependencies using Solr is extremely helpful.  So what is the way you can
> manage Solr 5 using a dependency tool without scraping the war file out of
> the download of Solr?  Is there a distribution of standalone Solr server
> through maven that I could use since there is little hep with having 4.x on
> maven since you can't upgrade it?
>
> Charlie