diff --git a/dev-tools/maven/lucene/contrib/sandbox/pom.xml.template b/dev-tools/maven/lucene/contrib/sandbox/pom.xml.template
index a490a28903c..deb328249b9 100644
--- a/dev-tools/maven/lucene/contrib/sandbox/pom.xml.template
+++ b/dev-tools/maven/lucene/contrib/sandbox/pom.xml.template
@@ -47,6 +47,10 @@
${project.version}
test
+
+ jakarta-regexp
+ jakarta-regexp
+
junit
junit