On 8/1/2016 9:04 AM, Demian Katz wrote:
> As a follow-up to last week's thread about loading Solr via dependency 
> manager, I started experimenting with using Ivy to install Solr. Here's what 
> I have (note that I'm trying to install Solr 5.5.0 as an arbitrary example, 
> but that detail should not be important):
<snip>
> My hope, based on a quick read of some Ivy tutorials, was that simply running 
> "ant" with the above configs would give me a copy of Solr in my lib 
> directory. When I use example libraries from the tutorials in my ivy.xml, I 
> do indeed get files installed... but when I try to substitute the Solr 
> package,
> no files are installed ("0 artifacts copied"). I'm not very experienced with 
> any of these tools or repositories, so I'm not sure where I'm going wrong.
>
> - Do I need to add some extra configuration somewhere to tell Ivy to download 
> the constituent parts of the solr-parent package?
> - Is the solr-parent package the wrong thing to be using? (I tried replacing 
> solr-parent with solr-core and ended up with many .jar files in my lib 
> directory, which was better than nothing, but the .jar files were not 
> organized into a directory structure and were not accompanied by any of the 
> non-.jar files like shell scripts that make Solr tick).
> - Am I just completely on the wrong track? (I do realize that there may not 
> be a way to pull a fully-functional Solr out of the core Maven repository... 
> but it seemed worth a try!)

The general use for ivy is to download development libraries as part of
the build process.  Downloading applications might be possible, but it's
a little outside what it was designed to do.

Looking into what's in solr-parent in maven central, it appears that the
only thing this contains is a Maven POM (an XML file) -- no binary
artifacts at all.  I doubt that's useful.  As you already noticed,
solr-core just gives you lots of jars that would let you embed a Solr
server into your own code -- it's not a full application.

In a theoretical situation where your program talked an SQL database,
would you include a database server in your project?  How much time
would you invest in automating the download and install of MySQL,
Postgres, or some other database?  I think what you would do in that
situation is include client code to talk to the database and expect the
user to provide the server and prepare it for your program.  In this
respect, how is a Solr server any different than a database server?

Thanks,
Shawn

Reply via email to