準備
lucene源碼,下載地址:https://github.com/apache/lucene-solr.git
- jdk 1.8
- eclipse
- apache-ant-1.9.11 配置環境變量git
-apache-ivy-2.5.0-rc1 把ivy-2.5.0-rc1.jar放到D:\softInstall\apache-ant-1.9.11\lib目錄下github
執行ant ivy-bootstrapapache
若是不執行上面步驟就會報錯以下,具體啥緣由不太清楚:bootstrap
而後到lucene項目路徑下執行ant eclipse,等待時間比較漫長執行成功以後就能看到.project後綴的文件而後就能夠導入了。也能夠執行ant ideaeclipse