版本信息
项目 | 版本 |
---|---|
系统 | macOS 10.13.6 |
ElasticSearch | 7.x |
JDK | 12 |
JDK | 1.8 |
配置
export JAVA_HOME=$JDK12_HOME
export JAVA8_HOME=$JDK8_HOME
导入 idea 前准备
> echo $JAVA_HOME
/Users/momo/.jenv/versions/12.0
> echo $JAVA8_HOME
/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home
> java -version
java version "12.0.1" 2019-04-16
Java(TM) SE Runtime Environment (build 12.0.1+12)
Java HotSpot(TM) 64-Bit Server VM (build 12.0.1+12, mixed mode, sharing)
> cd elasticsearch_home
> ./gradlew idea
导入 idea
参考链接
How to Debug Elasticsearch Source Code in IntelliJ IDEA
Contributing to the Elasticsearch codebase