Idea 导入ES源码工程
准备工作
1)导入源码前重新启动电脑,保证gradle、jdk9和IntelliJ IDEA 2017.2.3环境是好的
源码根目录
E:\workspace\idea\elasticsearch-6.2.4
导入步骤
根据CONTRIBUTING.md说明:
then `File->New Project From Existing Sources`.
Point to the root ofthe source directory,
select`Import project from external model->Gradle`,
enable`Use auto-import`
ES Mian class
org.elasticsearch.bootstrap.Elasticsearch
/**
* Main entry point for starting elasticsearch
*/
public static void main(final String[] args) throws Exception {
// we want the JVM to think there is a securit