-
Notifications
You must be signed in to change notification settings - Fork 19
How to build Heliosearch from sources
VadimKirilchuk edited this page Oct 19, 2014
·
13 revisions
- Git
- Java 1.7 (JDK)
- Ant 1.8.x or higher
- Ant ivy (actually, optional as build script can install it)
There are two options of running heliosearch:
- Build and run the example
- Build war file from sources and deploy it to web application server
- Checkout source code from github:
git clone [email protected]:Heliosearch/heliosearch.git
- Go into heliosearch solr directory:
cd heliosearch/solr
- Most build commands require ivy to be installed:
- If you don't have ivy installed, scripts will fail with a meaningful error.
- If you want script to install ivy use the following command:
ant ivy-bootstrap
- Otherwise install it manually and continue
- As heliosearch require some native libraries:
- Execute:
ant compile
- Go into native directory:
cd native
- Execute make file:
./make.sh
(Use cygwin under windows) - It will copy native libraries to native/build and example/native directories.
- Now go back to
heliosearch/solr
directory and proceed with concrete task
Note: after common steps you should be in the heliosearch/solr directory.
- Just run:
ant run-example
- If everything is successful please try to visit: http://localhost:8983/solr/admin to test that example works. Be sure that you have the following message during start:
!!!!!! Heliosearch native libraries loaded. !!!!!!
- Build .war file:
ant dist
- If everything was successful war file should appear in the heliosearch/solr/dist directory.
- The name of the file is something like solr-4.11.0-SNAPSHOT.war
- It is now possible to deploy the war file to your web application server(Tomcat, JBOSS AS, etc).