MyEclipse SOLR Commissioning Environment Construction (Solr5.5)

Source: Internet
Author: User

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.










Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.