1, download Solr-5.5.0.zip, solr-5.5.0-src.tgz (source package)
2, solr-5.5.0-src.tgz decompression to E:\solr5.5-source
3. Download apache-ant-1.9.6 and install
4. Set environment variables to add ant's Bin directory;
To see if the installation was successful, enter the command in the command-line window ant, if the result appears:
5. Compiling SOLR Source code
Ant runs the Build.xml file by default, enters your SOLR source directory in the command Line window, and enters ant to present the current Build.xml usage prompt.
6, we need the version of Eclipse, the input ant eclipse continue to compile, this may prompt
This is because a jar is missing this apache-ivy (download address: http://ant.apache.org/ivy/)
Just download a jar and put the jar under Ant's lib so that you can run ant again.
Re-enter Ant Eclipse to continue compiling. A moment will prompt you for success. After success in the source directory next to see. Project. Classpath hidden files (myeclipse projects are included)
7, open MyEclipse, import the previous step to compile the project. Add Web project Support
8. Unzip the Solr-5.5.0.zip in the first step and copy all the files under it to the Webroot directory in the previous step of the Web project Solr-5.5.0\server\solr-webapp\webapp
Note that the jar package is not included in the Lib directory
9. Copy the Log4j.properties file under Solr-5.5.0\server\resources into the Web project created in step 7th
10. Web project, Open XML, add Solr/home address. Add the following content
<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-value>E:/solr-5.5.0/server/solr</env-entry-value> <!--solr-5.5.0.zip a subdirectory after decompression, It's full of configuration files---
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
Note: WEB. XML may get an error, regardless
11, released to Tomcat, I use tomcat-7. Okay, here we go.