diff --git a/pom.xml b/pom.xml
index b4d7c404b42..4df3b52391b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -883,6 +883,26 @@
+
+ org.apache.maven.plugins
+ maven-eclipse-plugin
+
+
+
+ .settings/org.eclipse.jdt.core.prefs
+ src/eclipse/dot.settings/org.eclipse.jdt.core.prefs
+
+
+ .settings/org.eclipse.jdt.ui.prefs
+ src/eclipse/dot.settings/org.eclipse.jdt.ui.prefs
+
+
+ .settings/org.eclipse.core.resources.prefs
+ src/eclipse/dot.settings/org.eclipse.core.resources.prefs
+
+
+
+
diff --git a/src/eclipse/README b/src/eclipse/README
new file mode 100644
index 00000000000..ee4874d2311
--- /dev/null
+++ b/src/eclipse/README
@@ -0,0 +1,6 @@
+Eclipse configuration files
+
+You can use them by running
+ mvn eclipse:clean eclipse:eclipse
+and importing the project into Eclipse (File > Import > Existing Project into
+workspace) or refreshing it (F5) if you already imported it.
diff --git a/src/eclipse/dot.settings/org.eclipse.core.resources.prefs b/src/eclipse/dot.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 00000000000..99f26c0203a
--- /dev/null
+++ b/src/eclipse/dot.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+encoding/=UTF-8
diff --git a/src/eclipse/dot.settings/org.eclipse.jdt.core.prefs b/src/eclipse/dot.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000000..a35498a9916
--- /dev/null
+++ b/src/eclipse/dot.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,10 @@
+eclipse.preferences.version=1
+# We target Java 1.6
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.source=1.6
+# Lines should be splitted at 140 chars
+org.eclipse.jdt.core.formatter.lineSplit=140
+# Indentation is 4 spaces
+org.eclipse.jdt.core.formatter.tabulation.char=space
+org.eclipse.jdt.core.formatter.tabulation.size=4
diff --git a/src/eclipse/dot.settings/org.eclipse.jdt.ui.prefs b/src/eclipse/dot.settings/org.eclipse.jdt.ui.prefs
new file mode 100644
index 00000000000..0856eebe16b
--- /dev/null
+++ b/src/eclipse/dot.settings/org.eclipse.jdt.ui.prefs
@@ -0,0 +1,8 @@
+eclipse.preferences.version=1
+formatter_settings_version=12
+# Intellij IDEA import rules
+org.eclipse.jdt.ui.importorder=;java;javax;\#;
+org.eclipse.jdt.ui.ondemandthreshold=5
+org.eclipse.jdt.ui.staticondemandthreshold=3
+# License header
+org.eclipse.jdt.ui.text.custom_code_templates=/**\n *\n *//**\n *\n *//**\n * ${tags}\n *//**\n *\n *//**\n *\n *//**\n *\n *//**\n * ${tags}\n *//*\n *\n *//**\n * ${tags}\n * ${see_to_target}\n */${filecomment}\n/*\n * Licensed to ElasticSearch and Shay Banon under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. ElasticSearch licenses this\n * file to you under the Apache License, Version 2.0 (the\n * "License"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n${package_declaration}\n\n${typecomment}\n${type_declaration}\n\n\n\nthrow new RuntimeException();${body_statement}${body_statement}return ${field};${field} \= ${param};