diff --git a/dev-tools/maven/solr/solrj/pom.xml.template b/dev-tools/maven/solr/solrj/pom.xml.template
index 417e2838960..7e974c10f52 100644
--- a/dev-tools/maven/solr/solrj/pom.xml.template
+++ b/dev-tools/maven/solr/solrj/pom.xml.template
@@ -82,12 +82,12 @@
org.slf4j
slf4j-api
-
+
${build-directory}
${build-directory}/classes/java
-
+ ${build-directory}/classes/test
src/java