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新手,请多指教
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新手,请多指教
2 个回复
hapjin
赞同来自:
但比较奇怪的是,在运行ES中的测试用例时,如果涉及到check jar hell(就是要模拟节点启动),貌似只能在JDK10下才能跑通测试用例。(如下图,IDEA JRE配置为: JDK10)
但如果跑一些方法级别的测试用例,不涉及到集群启动,则可以用JDK8,下图是我用JDK8跑的一个方法的测试:
ridethewind
赞同来自: