diff --git a/all/pom.xml b/all/pom.xml
index 8e1a192ef5..d1cde9da9c 100644
--- a/all/pom.xml
+++ b/all/pom.xml
@@ -285,7 +285,7 @@
run
-
+
diff --git a/example/pom.xml b/example/pom.xml
index d7634faa2b..e337c5e538 100644
--- a/example/pom.xml
+++ b/example/pom.xml
@@ -99,20 +99,17 @@
- org.codehaus.mojo
- exec-maven-plugin
+ maven-antrun-plugin
- ${java.home}/bin/java
-
- ${argLine.common}
- ${argLine.bootcp}
- ${argLine.leak}
- ${argLine.coverage}
- -classpath %classpath
- ${argLine.example}
- ${exampleClass}
-
- runtime
+
+
+
+
+
+
+
diff --git a/pom.xml b/pom.xml
index 86d66cec12..4bb40e1b21 100644
--- a/pom.xml
+++ b/pom.xml
@@ -856,7 +856,7 @@
run
-
+
@@ -1064,11 +1064,6 @@
build-helper-maven-plugin
1.8
-
- org.codehaus.mojo
- exec-maven-plugin
- 1.3
-
org.fusesource.hawtjni
maven-hawtjni-plugin
diff --git a/run-example.sh b/run-example.sh
index 4344865350..6b63221cd7 100755
--- a/run-example.sh
+++ b/run-example.sh
@@ -58,5 +58,5 @@ fi
cd "`dirname "$0"`"/example
echo "[INFO] Running: $EXAMPLE ($EXAMPLE_CLASS $EXAMPLE_ARGS)"
-exec mvn -nsu compile exec:exec -DargLine.example="$EXAMPLE_ARGS" -DexampleClass="$EXAMPLE_CLASS"
+exec mvn -nsu compile antrun:run -Dcheckstyle.skip=true -Dantfile=src/antrun/run-example.xml -DargLine.example="$EXAMPLE_ARGS" -DexampleClass="$EXAMPLE_CLASS"