Hello,World

elasticsearch-5.6.14源码编译 导入到idea

Elasticsearch | 作者 jyingzhi | 发布于2019年05月30日 | 阅读数:2766

1.github下载的源码包
2.本地jdk用1.8
3.gradle版本为4.10.3
4.解压源码后,在home目录执行gradle idea报错
报错如下:
D:\code\elasticsearch-5.6.14>gradle idea
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.10.3 ... html.
Daemon will be stopped at the end of the build stopping after processing

FAILURE: Build failed with an exception.

* Where:
Build file 'D:\code\elasticsearch-5.6.14\benchmarks\build.gradle' line: 31

* What went wrong:
A problem occurred evaluating project ':benchmarks'.
> Failed to apply plugin [id 'carrotsearch.randomized-testing']
> Cannot add task 'test' as a task with that name already exists.

gradle新手,请多指教
已邀请:

hapjin

赞同来自:

我的编译环境:ElasticSearch6.3.2,Ubuntu16.04,JDK10,IDEA2018,gardle4.7。参考这篇文章 编译成功了。能够在IDEA下调试。
 
但比较奇怪的是,在运行ES中的测试用例时,如果涉及到check jar hell(就是要模拟节点启动),貌似只能在JDK10下才能跑通测试用例。(如下图,IDEA JRE配置为: JDK10)

test.png

 
 但如果跑一些方法级别的测试用例,不涉及到集群启动,则可以用JDK8,下图是我用JDK8跑的一个方法的测试:

选区_085.png


 

ridethewind

赞同来自:

gradle版本问题

要回复问题请先登录注册