diff --git a/pom.xml b/pom.xml
index 4199f8963c5..07834dd1aaf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -602,6 +602,24 @@
jar
+
+ attach-test-sources
+
+ test-jar
+
+
+
+ org/elasticsearch/test/**/*
+ org/apache/lucene/util/AbstractRandomizedTest.java
+
+
+
+ org/elasticsearch/test/rest/test/**/*
+
+
+ true
+
+