首页

lucene源码项目编译失败:ivy-fail..This build requires Ivy and Ivy could not be found...

标签:Apache Lucene项目构建,构建失败,ant,ivy-availability-check,Ivy,lucene源码编译打包,项目部署     发布时间:2016-05-09   

一、前言

之前下了了solr源码,里面包含Lucene源码部分及相关文档,在eclipse里面建了个Java项目,以File System方式导入(import)官网下载源码包,构建后的目标项目参见GitHub资源库,运行Ant Build之后,报出错误日志“ivy-fail: [echo]      This build requires Ivy and Ivy could not be found in your ant classpath...BUILD FAILED”,详情如下所示

lucene源码项目编译失败:ivy-fail..This build requires Ivy and Ivy could not be found...

二、解决问题

1.  eclipse中切换到Ant视图,右击之前新建的编译配置项,如下图,选择“Run As”下的“External Tools Configurations”

lucene源码项目编译失败:ivy-fail..This build requires Ivy and Ivy could not be found...

2. 弹出如下图配置界面,选择“Targets”选项卡,勾掉原选项,点击勾选“ivy-bootstarp..”,然后点击“Run”按钮

lucene源码项目编译失败:ivy-fail..This build requires Ivy and Ivy could not be found...

3. 如下图,在默认用户目录下生成打包ivy-2.3.0.jar包文件

lucene源码项目编译失败:ivy-fail..This build requires Ivy and Ivy could not be found...

4.如下图,点击Classpath选项卡,引入生成ivy-2.3.0.jar包文件

lucene源码项目编译失败:ivy-fail..This build requires Ivy and Ivy could not be found...

5. 切换到Targets,勾选jar选项,点击“Run”按钮,问题解决

lucene源码项目编译失败:ivy-fail..This build requires Ivy and Ivy could not be found...

6. 在项目的build文件下生成源码编译的jar包文件,如下图所示

lucene源码项目编译失败:ivy-fail..This build requires Ivy and Ivy could not be found...

<<热门下载>>