diff --git a/src/test/java/org/springframework/data/elasticsearch/Utils.java b/src/test/java/org/springframework/data/elasticsearch/Utils.java
index 6d56a7c6f..1dfe172a3 100644
--- a/src/test/java/org/springframework/data/elasticsearch/Utils.java
+++ b/src/test/java/org/springframework/data/elasticsearch/Utils.java
@@ -31,7 +31,7 @@ public class Utils {
return (NodeClient) nodeBuilder().settings(Settings.builder()
.put("http.enabled", "false")
.put("path.data", "target/elasticsearchTestData")
- .put("path.home", "test-home-dir"))
+ .put("path.home", "src/test/resources/test-home-dir"))
.clusterName(UUID.randomUUID().toString()).local(true).node()
.client();
}
diff --git a/src/test/resources/infrastructure.xml b/src/test/resources/infrastructure.xml
index 53b807b3b..0d6eebdda 100644
--- a/src/test/resources/infrastructure.xml
+++ b/src/test/resources/infrastructure.xml
@@ -6,7 +6,7 @@
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
diff --git a/src/test/resources/org/springframework/data/elasticsearch/config/namespace.xml b/src/test/resources/org/springframework/data/elasticsearch/config/namespace.xml
index 6d02237c9..946270894 100644
--- a/src/test/resources/org/springframework/data/elasticsearch/config/namespace.xml
+++ b/src/test/resources/org/springframework/data/elasticsearch/config/namespace.xml
@@ -7,7 +7,7 @@
+ path-data="target/elasticsearchTestData" path-home="src/test/resources/test-home-dir"/>
diff --git a/test-home-dir/modules/lang-groovy/groovy-all-2.4.4-indy.jar b/src/test/resources/test-home-dir/modules/lang-groovy/groovy-all-2.4.4-indy.jar
similarity index 100%
rename from test-home-dir/modules/lang-groovy/groovy-all-2.4.4-indy.jar
rename to src/test/resources/test-home-dir/modules/lang-groovy/groovy-all-2.4.4-indy.jar
diff --git a/test-home-dir/modules/lang-groovy/lang-groovy-2.2.0.jar b/src/test/resources/test-home-dir/modules/lang-groovy/lang-groovy-2.2.0.jar
similarity index 100%
rename from test-home-dir/modules/lang-groovy/lang-groovy-2.2.0.jar
rename to src/test/resources/test-home-dir/modules/lang-groovy/lang-groovy-2.2.0.jar
diff --git a/test-home-dir/modules/lang-groovy/plugin-descriptor.properties b/src/test/resources/test-home-dir/modules/lang-groovy/plugin-descriptor.properties
similarity index 100%
rename from test-home-dir/modules/lang-groovy/plugin-descriptor.properties
rename to src/test/resources/test-home-dir/modules/lang-groovy/plugin-descriptor.properties
diff --git a/test-home-dir/modules/lang-groovy/plugin-security.policy b/src/test/resources/test-home-dir/modules/lang-groovy/plugin-security.policy
similarity index 100%
rename from test-home-dir/modules/lang-groovy/plugin-security.policy
rename to src/test/resources/test-home-dir/modules/lang-groovy/plugin-security.policy