{"id":282,"date":"2016-09-22T00:28:01","date_gmt":"2016-09-22T00:28:01","guid":{"rendered":"http:\/\/emacslisp.com\/?p=282"},"modified":"2016-09-22T00:30:23","modified_gmt":"2016-09-22T00:30:23","slug":"lucene-build-lucene-and-import-to-eclipse","status":"publish","type":"post","link":"http:\/\/emacslisp.com\/?p=282","title":{"rendered":"Lucene &#8211; Build Lucene and import to eclipse."},"content":{"rendered":"<p>This is first article on Lucene source code analysis.<br \/>\nThere are two ways to get source code, one of them are download directly form lucene&#8217;s WebSite http:\/\/www.apache.org\/dyn\/closer.lua\/lucene\/java\/6.2.1<\/p>\n<p>you could choose to download lucene-6.2.1-src.tgz and release binary build lucene-6.2.1.tgz .<\/p>\n<p>However, lucene-6.2.1-src.tgz are not easy to import to eclipse.run &#8220;ant -p&#8221; to check all commands and &#8220;ant eclipse&#8221; command is not ready yet. you have to check out https:\/\/github.com\/apache\/lucene-solr. From readme you could find the following message<br \/>\n&#8220;To compile the sources run &#8216;ant compile&#8217;<br \/>\nTo run all the tests run &#8216;ant test&#8217;<br \/>\nTo setup your ide run &#8216;ant idea&#8217;, &#8216;ant netbeans&#8217;, or &#8216;ant eclipse'&#8221;<\/p>\n<p>install ivy for ant.<br \/>\nDownload ivy file such as &#8220;apache-ivy-2.4.0-bin.zip&#8221; and put to ant library file.<\/p>\n<p>after git clone from https:\/\/github.com\/apache\/lucene-solr, run &#8220;ant eclipse&#8221; and then run eclipse , &#8220;Import&#8221; -> &#8220;Existing Projects into workspace&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is first article on Lucene source code analysis. There are two ways to get source code, one of them are download directly form lucene&#8217;s WebSite http:\/\/www.apache.org\/dyn\/closer.lua\/lucene\/java\/6.2.1 you could choose to download lucene-6.2.1-src.tgz and release binary build lucene-6.2.1.tgz . However, lucene-6.2.1-src.tgz are not easy to import to eclipse.run &#8220;ant -p&#8221; to check all commands and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-282","post","type-post","status-publish","format-standard","hentry","category-java"],"_links":{"self":[{"href":"http:\/\/emacslisp.com\/index.php?rest_route=\/wp\/v2\/posts\/282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/emacslisp.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/emacslisp.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/emacslisp.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/emacslisp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=282"}],"version-history":[{"count":3,"href":"http:\/\/emacslisp.com\/index.php?rest_route=\/wp\/v2\/posts\/282\/revisions"}],"predecessor-version":[{"id":285,"href":"http:\/\/emacslisp.com\/index.php?rest_route=\/wp\/v2\/posts\/282\/revisions\/285"}],"wp:attachment":[{"href":"http:\/\/emacslisp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/emacslisp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=282"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/emacslisp.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}