Intellij Idea编译Lucene源码

一、软件环境
ant 1.9.6 下载地址:http://ant.apache.org/ivy/download.cgi
lucene 6.6.1 官网:https://lucene.apache.org/
jdk 1.8
二、编译源码
1,lucene 使用ant+ivy进行依赖管理,安装完ant后 直接执行 ant 命令:ant ,会报错
This build requires Ivy and Ivy could not be found in your ant classpath
If you have already run ivy-bootstrap, and still get this message, please
[echo] try using the “–noconfig” option when running ant, or editing your global
[echo] ant config to allow the user lib to be loaded. See the wiki for more details:
解决办法:首先运行命令:ant ivy-bootstrap
再执行ant 命令,编译通过
三、导入idea查看

猜你喜欢

转载自blog.csdn.net/ok0011/article/details/82179336