From 76c5f53dfa1ae510e76ada99e521a1e6fc943d25 Mon Sep 17 00:00:00 2001 From: colings86 Date: Wed, 6 Nov 2013 20:49:21 +0000 Subject: [PATCH] Changed pom to allow import and running from eclipse Currently when importing projects into eclipse you need to run 'mvn eclipse:eclipse' on the command line to generate the poject files. This means that when the pom changes you need to re-run the command on the command line to reflect those changes in the project in eclipse. This commit allows the developer to import the project as an existing maven project (can be shared using git after import) and then allows the application to be run inside eclipse using the .launch file in /dev-tools enabling easy debugging of the application within eclipse without requiring a maven build. --- CONTRIBUTING.md | 2 ++ dev-tools/ElasticSearch.launch | 17 +++++++++++++ pom.xml | 45 +++++++++++++++++++++++++++++++++- 3 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 dev-tools/ElasticSearch.launch diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ab3569ef6c7..f7931e9c6c2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -74,6 +74,8 @@ Contributing to the Elasticsearch codebase Make sure you have [Maven](http://maven.apache.org) installed, as Elasticsearch uses it as its build system. Integration with IntelliJ and Eclipse should work out of the box. Eclipse users can automatically configure their IDE by running `mvn eclipse:eclipse` and then importing the project into their workspace: `File > Import > Existing project into workspace`. +Elasticsearch also works perfectly with Eclipse's [http://www.eclipse.org/m2e/](m2e). Once you've installed m2e you can import Elasticsearch as an `Existing Maven Project`. + Please follow these formatting guidelines: * Java indent is 4 spaces diff --git a/dev-tools/ElasticSearch.launch b/dev-tools/ElasticSearch.launch new file mode 100644 index 00000000000..803024339e4 --- /dev/null +++ b/dev-tools/ElasticSearch.launch @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/pom.xml b/pom.xml index e236287497d..d337c2562c0 100644 --- a/pom.xml +++ b/pom.xml @@ -1016,7 +1016,50 @@ - + + + + + + + de.thetaphi + forbiddenapis + [1.0.0,) + + testCheck + check + + + + + + + + + + exec-maven-plugin + org.codehaus.mojo + [1.0.0,) + + exec + + + + + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + [1.0.0,) + + enforce + + + +