Skip to content

Apache Lucene open-source search software

LUCENE-6439: enable support fors test-framework-tests on Maven build

Uwe Schindlerfae5b46a20ad
diff --git a/dev-tools/maven/lucene/test-framework/pom.xml.template b/dev-tools/maven/lucene/test-framework/pom.xml.template
index 9d575d598ae..f17f73a15a8 100644
--- a/dev-tools/maven/lucene/test-framework/pom.xml.template
+++ b/dev-tools/maven/lucene/test-framework/pom.xml.template
@@ -60,14 +60,16 @@
</excludes>
</resource>
</resources>
+ <testSourceDirectory>${module-path}/src/test</testSourceDirectory>
+ <testResources>
+ <testResource>
+ <directory>${project.build.testSourceDirectory}</directory>
+ <excludes>
+ <exclude>**/*.java</exclude>
+ </excludes>
+ </testResource>
+ </testResources>
<plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <skip>true</skip>
- </configuration>
- </plugin>
<plugin>
<groupId>de.thetaphi</groupId>
<artifactId>forbiddenapis</artifactId>
@@ -79,7 +81,8 @@
<execution>
<id>lucene-shared-test-check-forbidden-apis</id>
<goals>
- <goal>check</goal> <!-- NOT testCheck -->
+ <goal>check</goal>
+ <goal>testCheck</goal>
</goals>
</execution>
<execution>