A, reference

Elasticsearch Learning Series Directory — Update ing

How can I setup and run/debug ElasticSearch in IntelliJ IDEA

Two, environment construction

2.1 installationmaven

Elasticsearch2.0 usemavenManagement, so it needs to be installed firstmaven.

2.2 Download the source code

CD/e/java_projects/es/git clone https://github.com/elastic/elasticsearch.git mv elasticsearch es2.0 CD es2.0 git Checkout - b v2.0 origin / 2.0

2.3 Compiling source code

mvn clean package -DskipTests

2.4 Update the configuration file

cp -r ./distribution/src/main/resources/config/ ./core/

2.5 the IDEA of running