From 48bc49c093516def7cad468d1d97d490d4f609e9 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Fri, 17 Jul 2015 00:03:33 -0400 Subject: [PATCH] Remove broken `exec` build target, replace with something better. Currently this target is "yet another way" to run elasticsearch, which we can't maintain. It also has the problem that it doesnt ensure its running on the latest source code, doesn't configure any scratch space properly, won't work with securitymanager, list goes on. Even if we made it work, it would break every day, since its untested. Instead, `mvn package -Drun -DskipTests` will run packaging, and then startup bin/elasticsearch (like integration tests, but in foreground). It also enables debugger socket on port 8000, for people that like IDE debuggers and not system.out.println. Its a little slower to get started because of all the shading/RPM/DEB building going on in `package` but that is just what it is right now until that stuff is moved out. --- core/pom.xml | 48 ++++++------------- .../main/resources/ant/integration-tests.xml | 18 +++++++ 2 files changed, 32 insertions(+), 34 deletions(-) diff --git a/core/pom.xml b/core/pom.xml index 8ed637134a6..13981dd6536 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -299,39 +299,6 @@ - - org.codehaus.mojo - exec-maven-plugin - 1.4.0 - - - - exec - - - - - ${jvm.executable} - - -Des.security.manager.enabled=false - -classpath - - org.elasticsearch.bootstrap.Bootstrap - -Xms256m - -Xmx1g - -Djava.awt.headless=true - -XX:+UseParNewGC - -XX:+UseConcMarkSweepGC - -XX:CMSInitiatingOccupancyFraction=75 - -XX:+UseCMSInitiatingOccupancyOnly - -XX:+HeapDumpOnOutOfMemoryError - -XX:+DisableExplicitGC - -Dfile.encoding=UTF-8 - -Djna.nosys=true - -Delasticsearch - - - org.apache.maven.plugins maven-source-plugin @@ -1025,11 +992,24 @@ - + org.apache.maven.plugins maven-antrun-plugin + + + execute + package + + run + + + + + + + integ-setup diff --git a/dev-tools/src/main/resources/ant/integration-tests.xml b/dev-tools/src/main/resources/ant/integration-tests.xml index 54554f32652..331a9c029c3 100644 --- a/dev-tools/src/main/resources/ant/integration-tests.xml +++ b/dev-tools/src/main/resources/ant/integration-tests.xml @@ -24,6 +24,7 @@ + @@ -34,11 +35,13 @@ + + @@ -134,6 +137,21 @@ + + + + + + + + + + + + + +