
Select Import project from external model -> Gradle, and then click on Next.Ĥ. Select the elasticsearch directory and click on Open.ģ. Open IntelliJ IDEA, and if you don't have any other projects open, you will see a screen that looks like the image below. Import Elasticsearch into an IntelliJ IDEA projectġ. The above command may take a few minutes to execute, and once it is complete, your project is ready to be imported into IntelliJ IDEA. JAVA9_HOME=/Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Homeįinally, execute the following command to configure an Elasticsearch project for use in IntelliJ IDEA. JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home For example my JAVA_HOME and JAVA9_HOME are set in my. Additionally, Java 9 is used in part of the build process and if it is not found you will see warnings when the code is built. Ensure that your JAVA_HOME and JAVA9_HOME environment variables are set correctly. The build system used by Elasticsearch is gradle, and at least Java 11 is required to build "Elasticsearch gradle tools". The remainder of this blog post is based on the instructions in these files.Ĭonfigure the code for use with IntelliJ IDEA In particular, CONTRIBUTING.md includes a description of the process for importing Elasticsearch code into an IntelliJ IDEA project, and TESTING.asciidoc describes ways to build and debug the code. Within the elasticsearch directory, there are several text files that should be reviewed. Review the text files included with the distribution Get a copy of the Elasticsearch source code from github as follows:Ĭheckout the branch for the Elasticsearch release that you want to debug.
#Webstorm logo mac osx
The instructions presented in this blog have been tested on Mac OSX 10.14.2 with IntelliJ IDEA 2018.3 (Community Edition), and OpenJDK 11.0.2. Please review the Brand Guidelines to get acquainted with our.
#Webstorm logo how to
Therefore, in this blog post I present (1) how to download the Elasticsearch source code, (2) how to setup an Elasticsearch project in IntelliJ IDEA, and (3) how to launch the Java debugger in IntelliJ IDEA. If the source code has been downloaded, then a full-featured Integrated Development Environment (IDE) such as IntelliJ IDEA can be useful for browsing, editing, and debugging it. If one wishes to understand the inner workings of Elasticsearch, the source code is the ultimate authority. These instructions will not work with version 7.5 and later due to changes made in PR #48188. Editor's Note (Jan 6, 2020): This was written and tested with Elasticsearch 6.6.
