"Go" solr source code import eclipse

Source: Internet
Author: User
Tags solr

http://blog.csdn.net/vltic/article/details/19917377

(1) Preparation of the corresponding development environment

(1) jdk1.6+ Installation and environment variable configuration (command line knocks Java and Javac, check)

(2) ant1.8+ installation and environment variable configuration (command-line knock Ant-v test)

(3) solr4.6.1 source code download, select Solr-4.6.1-src.tgz

Http://mirror.bit.edu.cn/apache/lucene/solr/4.6.1/

(2) Compile solr4.6.1 source code, import eclipse

(1) Unzip the downloaded SOLR-4.6.1-SRC.TGZ package, unzip the directory below

As you can see from the file structure, owning a build.xml file is built on ant (Pom.xml is built based on MAVEN)

(2) Go to the solr-4.6.1 file directory extracted from the previous step, and then you can view the files that ant needs to compile

(3) See need to compile some of the files are Ivy, need to use Ivy to download the required package, ivy in two ways, the first is to download Ivy-xxxx.jar copy to%ant_home%/lib below, Then just hit ant Eclipse on the command line in the current solr-4.6.1 directory, and the second is to download it directly with Ant ivy-bootstrap. I suggest to use the second kind, save the first kind to download. An error occurred after executing ant Ivy-boorstrap, as follows:

From the above error, it can be seen that the ivy-2.3.0.jar below the user/.ant/lib already exists, and checksum error has occurred. You can also go to see the%ant_home%/lib below the Ivy-2.3.0.jar, found already exist, at this point that the Ivy-xxxx.jar package already exists, do not need to download Ivy-xxxx.jar. In order to verify my second idea, I removed all previous ivy-2.3.0.jar, re-ant Bootstrap, build successful.

(4) Compile support solr-4.6.1 let Eclipse be supported, just execute ant eclipse in the solr-4.6.1 directory and wait patiently.

Seeing the build successful, it means that ant is successful.

(5) After viewing the compiled file, the. classpath and. project files appear.

(6) Import to Eclipse,package explore as follows:

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

"Go" solr source code import eclipse

Related Article

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.