Skip to content

Apache Lucene open-source search software

SOLR-5764: Add workaround to make Maven work (shared test-files does not seem to be included when the test-jar dependency is resolved).

Uwe Schindler3e0353ffabe6
diff --git a/dev-tools/maven/solr/contrib/map-reduce/pom.xml.template b/dev-tools/maven/solr/contrib/map-reduce/pom.xml.template
index b45f0732cbf..6875ba2c652 100644
--- a/dev-tools/maven/solr/contrib/map-reduce/pom.xml.template
+++ b/dev-tools/maven/solr/contrib/map-reduce/pom.xml.template
@@ -74,6 +74,11 @@
<testResource>
<directory>${module-path}/src/test-files</directory>
</testResource>
+ <testResource>
+ <!-- TODO: This is a hack, because the shared test-files folder seems not to be
+ included by the dependency, maybe because the dependency test-jar is not unpacked? -->
+ <directory>${module-path}/../morphlines-core/src/test-files</directory>
+ </testResource>
<testResource>
<directory>${top-level}/dev-tools/maven/solr</directory>
<includes>
diff --git a/dev-tools/maven/solr/contrib/morphlines-cell/pom.xml.template b/dev-tools/maven/solr/contrib/morphlines-cell/pom.xml.template
index 9bf9588e590..f8a50c3a208 100644
--- a/dev-tools/maven/solr/contrib/morphlines-cell/pom.xml.template
+++ b/dev-tools/maven/solr/contrib/morphlines-cell/pom.xml.template
@@ -74,6 +74,11 @@
<testResource>
<directory>${module-path}/src/test-files</directory>
</testResource>
+ <testResource>
+ <!-- TODO: This is a hack, because the shared test-files folder seems not to be
+ included by the dependency, maybe because the dependency test-jar is not unpacked? -->
+ <directory>${module-path}/../morphlines-core/src/test-files</directory>
+ </testResource>
<testResource>
<directory>${top-level}/dev-tools/maven/solr</directory>
<includes>