diff --git a/dev-tools/maven/lucene/contrib/queries/pom.xml.template b/dev-tools/maven/lucene/contrib/queries/pom.xml.template
index 8feea4bda33..3286526a3bf 100644
--- a/dev-tools/maven/lucene/contrib/queries/pom.xml.template
+++ b/dev-tools/maven/lucene/contrib/queries/pom.xml.template
@@ -43,6 +43,13 @@
lucene-core
${project.version}
+
+ ${project.groupId}
+ lucene-core
+ ${project.version}
+ test-jar
+ test
+
${project.groupId}
lucene-test-framework