[BUILD] Generate source jars for tests

Closes #6125
This commit is contained in:
Nik Everett 2014-06-09 20:00:34 -04:00 committed by Luca Cavanna
parent 5575ba1a12
commit 29c10ed1bb
1 changed files with 18 additions and 0 deletions

18
pom.xml
View File

@ -602,6 +602,24 @@
<goal>jar</goal>
</goals>
</execution>
<execution>
<id>attach-test-sources</id>
<goals>
<goal>test-jar</goal>
</goals>
<configuration>
<includes>
<include>org/elasticsearch/test/**/*</include>
<include>org/apache/lucene/util/AbstractRandomizedTest.java</include>
</includes>
<excludes>
<!-- unit tests for yaml suite parser & rest spec parser need to be excluded -->
<exclude>org/elasticsearch/test/rest/test/**/*</exclude>
</excludes>
<!-- Resources are large and not really helpful as "test sources". -->
<excludeResources>true</excludeResources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>