diff --git a/dev-tools/maven/lucene/analysis/stempel/pom.xml.template b/dev-tools/maven/lucene/analysis/stempel/pom.xml.template
index 51d34e9c53e..31c931d7664 100644
--- a/dev-tools/maven/lucene/analysis/stempel/pom.xml.template
+++ b/dev-tools/maven/lucene/analysis/stempel/pom.xml.template
@@ -82,11 +82,11 @@
forbiddenapis
- lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out
+ lucene-shared-check-forbidden-apis
none
- check-forbidden-executors-and-jdk-unsafe-and-deprecated
+ check-forbidden-apis
true
diff --git a/dev-tools/maven/lucene/benchmark/pom.xml.template b/dev-tools/maven/lucene/benchmark/pom.xml.template
index 896286636ef..0527762ee18 100755
--- a/dev-tools/maven/lucene/benchmark/pom.xml.template
+++ b/dev-tools/maven/lucene/benchmark/pom.xml.template
@@ -126,11 +126,11 @@
forbiddenapis
- lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out
+ lucene-shared-check-forbidden-apis
none
- check-forbidden-executors-and-jdk-unsafe-and-deprecated
+ check-forbidden-apis
true
diff --git a/dev-tools/maven/lucene/codecs/src/java/pom.xml.template b/dev-tools/maven/lucene/codecs/src/java/pom.xml.template
index 459c45d00e7..c4164d9d34a 100644
--- a/dev-tools/maven/lucene/codecs/src/java/pom.xml.template
+++ b/dev-tools/maven/lucene/codecs/src/java/pom.xml.template
@@ -78,7 +78,7 @@
forbiddenapis
- lucene-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated
+ lucene-shared-test-check-forbidden-apis
none
diff --git a/dev-tools/maven/lucene/codecs/src/test/pom.xml.template b/dev-tools/maven/lucene/codecs/src/test/pom.xml.template
index b6cf898df29..a7f5fdeb1fa 100644
--- a/dev-tools/maven/lucene/codecs/src/test/pom.xml.template
+++ b/dev-tools/maven/lucene/codecs/src/test/pom.xml.template
@@ -74,7 +74,7 @@
forbiddenapis
- lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out
+ lucene-shared-check-forbidden-apis
none
diff --git a/dev-tools/maven/lucene/core/src/java/pom.xml.template b/dev-tools/maven/lucene/core/src/java/pom.xml.template
index db0fee67d6e..700257fee17 100644
--- a/dev-tools/maven/lucene/core/src/java/pom.xml.template
+++ b/dev-tools/maven/lucene/core/src/java/pom.xml.template
@@ -69,15 +69,15 @@
forbiddenapis
- lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out
+ lucene-shared-check-forbidden-apis
none
- lucene-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated
+ lucene-shared-test-check-forbidden-apis
none
- check-forbidden-executors-and-jdk-unsafe-and-deprecated
+ check-forbidden-apis
true
diff --git a/dev-tools/maven/lucene/core/src/test/pom.xml.template b/dev-tools/maven/lucene/core/src/test/pom.xml.template
index 6f59c36aa57..0659acfbec1 100644
--- a/dev-tools/maven/lucene/core/src/test/pom.xml.template
+++ b/dev-tools/maven/lucene/core/src/test/pom.xml.template
@@ -93,7 +93,7 @@
forbiddenapis
- lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out
+ lucene-shared-check-forbidden-apis
none
diff --git a/dev-tools/maven/lucene/demo/pom.xml.template b/dev-tools/maven/lucene/demo/pom.xml.template
index 741cf535b25..a6aef59a1c9 100644
--- a/dev-tools/maven/lucene/demo/pom.xml.template
+++ b/dev-tools/maven/lucene/demo/pom.xml.template
@@ -97,11 +97,11 @@
forbiddenapis
- lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out
+ lucene-shared-check-forbidden-apis
none
- check-forbidden-executors-and-jdk-unsafe-and-deprecated
+ check-forbidden-apis
true
diff --git a/dev-tools/maven/lucene/facet/pom.xml.template b/dev-tools/maven/lucene/facet/pom.xml.template
index 0b5693378c9..391ec96fa50 100755
--- a/dev-tools/maven/lucene/facet/pom.xml.template
+++ b/dev-tools/maven/lucene/facet/pom.xml.template
@@ -84,11 +84,11 @@
forbiddenapis
- lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out
+ lucene-shared-check-forbidden-apis
none
- check-forbidden-executors-and-jdk-unsafe-and-deprecated
+ check-forbidden-apis
true
diff --git a/dev-tools/maven/lucene/misc/pom.xml.template b/dev-tools/maven/lucene/misc/pom.xml.template
index f8fcacd5a19..4125ea09fb4 100644
--- a/dev-tools/maven/lucene/misc/pom.xml.template
+++ b/dev-tools/maven/lucene/misc/pom.xml.template
@@ -72,11 +72,11 @@
forbiddenapis
- lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out
+ lucene-shared-check-forbidden-apis
none
- check-forbidden-executors-and-jdk-unsafe-and-deprecated
+ check-forbidden-apis
true
diff --git a/dev-tools/maven/lucene/pom.xml.template b/dev-tools/maven/lucene/pom.xml.template
index 87bdbcdb8de..93f045d2933 100644
--- a/dev-tools/maven/lucene/pom.xml.template
+++ b/dev-tools/maven/lucene/pom.xml.template
@@ -66,7 +66,7 @@
forbiddenapis
- lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out
+ lucene-shared-check-forbidden-apis
true
@@ -84,14 +84,17 @@
- lucene-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated
+ lucene-shared-test-check-forbidden-apis
+
+ true
jdk-unsafe
jdk-deprecated
${top-level}/lucene/tools/forbiddenApis/tests.txt
+ ${top-level}/lucene/tools/forbiddenApis/executors.txt
diff --git a/dev-tools/maven/lucene/queryparser/pom.xml.template b/dev-tools/maven/lucene/queryparser/pom.xml.template
index ba414aab260..d3953967d79 100644
--- a/dev-tools/maven/lucene/queryparser/pom.xml.template
+++ b/dev-tools/maven/lucene/queryparser/pom.xml.template
@@ -87,11 +87,11 @@
forbiddenapis
- lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out
+ lucene-shared-check-forbidden-apis
none
- check-forbidden-executors-and-jdk-unsafe-and-deprecated
+ check-forbidden-apis
true
diff --git a/dev-tools/maven/lucene/test-framework/pom.xml.template b/dev-tools/maven/lucene/test-framework/pom.xml.template
index c3cd82f7129..881d1944e80 100644
--- a/dev-tools/maven/lucene/test-framework/pom.xml.template
+++ b/dev-tools/maven/lucene/test-framework/pom.xml.template
@@ -87,22 +87,25 @@
forbiddenapis
- lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out
+ lucene-shared-check-forbidden-apis
none
- lucene-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated
+ lucene-shared-test-check-forbidden-apis
none
- test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated
+ test-check-forbidden-apis
+
+ true
jdk-unsafe
jdk-deprecated
${top-level}/lucene/tools/forbiddenApis/tests.txt
+ ${top-level}/lucene/tools/forbiddenApis/executors.txt
diff --git a/dev-tools/maven/solr/core/src/java/pom.xml.template b/dev-tools/maven/solr/core/src/java/pom.xml.template
index 91b4e3b3d6e..549f6c77187 100644
--- a/dev-tools/maven/solr/core/src/java/pom.xml.template
+++ b/dev-tools/maven/solr/core/src/java/pom.xml.template
@@ -221,15 +221,15 @@
forbiddenapis
- solr-check-forbidden-executors-and-jdk-unsafe-and-deprecated
+ solr-shared-check-forbidden-apis
none
- solr-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated
+ solr-shared-test-check-forbidden-apis
none
- check-forbidden-executors-and-servlet-api-and-jdk-unsafe-and-deprecated-and-commons-io-unsafe
+ check-forbidden-apis
true
diff --git a/dev-tools/maven/solr/core/src/test/pom.xml.template b/dev-tools/maven/solr/core/src/test/pom.xml.template
index ad2f62307b2..a9647db8adf 100644
--- a/dev-tools/maven/solr/core/src/test/pom.xml.template
+++ b/dev-tools/maven/solr/core/src/test/pom.xml.template
@@ -118,15 +118,15 @@
forbiddenapis
- solr-check-forbidden-executors-and-jdk-unsafe-and-deprecated
+ solr-shared-check-forbidden-apis
none
- solr-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated
+ solr-shared-test-check-forbidden-apis
none
- test-check-forbidden-servlet-api-and-jdk-unsafe-and-deprecated-and-commons-io-unsafe
+ test-check-forbidden-apis
true
@@ -137,6 +137,7 @@
${top-level}/lucene/tools/forbiddenApis/servlet-api.txt
+ ${top-level}/lucene/tools/forbiddenApis/executors.txt
@@ -144,7 +145,7 @@
- test-check-forbidden-test-apis
+ test-check-forbidden-test-apis
${top-level}/lucene/tools/forbiddenApis/tests.txt
diff --git a/dev-tools/maven/solr/pom.xml.template b/dev-tools/maven/solr/pom.xml.template
index 9f9eeed59e5..00d0238bd9d 100644
--- a/dev-tools/maven/solr/pom.xml.template
+++ b/dev-tools/maven/solr/pom.xml.template
@@ -116,7 +116,7 @@
forbiddenapis
- solr-check-forbidden-executors-and-jdk-unsafe-and-deprecated
+ solr-shared-check-forbidden-apis
true
@@ -133,14 +133,19 @@
- solr-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated
+ solr-shared-test-check-forbidden-apis
+
+ true
jdk-unsafe
jdk-deprecated
+
+
${top-level}/lucene/tools/forbiddenApis/tests.txt
+ ${top-level}/lucene/tools/forbiddenApis/executors.txt
diff --git a/dev-tools/maven/solr/solrj/src/java/pom.xml.template b/dev-tools/maven/solr/solrj/src/java/pom.xml.template
index f659cdf1521..21594003c11 100644
--- a/dev-tools/maven/solr/solrj/src/java/pom.xml.template
+++ b/dev-tools/maven/solr/solrj/src/java/pom.xml.template
@@ -137,15 +137,15 @@
forbiddenapis
- solr-check-forbidden-executors-and-jdk-unsafe-and-deprecated
+ solr-shared-check-forbidden-apis
none
- solr-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated
+ solr-shared-test-check-forbidden-apis
none
- check-forbidden-executors-and-jdk-unsafe-and-deprecated-and-commons-io-unsafe
+ check-forbidden-apis
true
diff --git a/dev-tools/maven/solr/solrj/src/test/pom.xml.template b/dev-tools/maven/solr/solrj/src/test/pom.xml.template
index f981e582ee0..2b8d65266c2 100644
--- a/dev-tools/maven/solr/solrj/src/test/pom.xml.template
+++ b/dev-tools/maven/solr/solrj/src/test/pom.xml.template
@@ -107,11 +107,11 @@
forbiddenapis
- solr-check-forbidden-executors-and-jdk-unsafe-and-deprecated
+ solr-shared-check-forbidden-apis
none
- solr-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated
+ solr-shared-test-check-forbidden-apis
none
@@ -130,7 +130,7 @@
- test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated-and-commons-io-unsafe
+ test-check-forbidden-apis
true
@@ -141,6 +141,7 @@
${top-level}/lucene/tools/forbiddenApis/tests.txt
+ ${top-level}/lucene/tools/forbiddenApis/executors.txt
diff --git a/dev-tools/maven/solr/test-framework/pom.xml.template b/dev-tools/maven/solr/test-framework/pom.xml.template
index 82aa1d56c31..eb9bc006a6a 100644
--- a/dev-tools/maven/solr/test-framework/pom.xml.template
+++ b/dev-tools/maven/solr/test-framework/pom.xml.template
@@ -109,25 +109,27 @@
forbiddenapis
- solr-check-forbidden-executors-and-jdk-unsafe-and-deprecated
+ solr-shared-check-forbidden-apis
none
- solr-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated
+ solr-shared-test-check-forbidden-apis
none
- check-forbidden-test-apis-and-servlet-api-and-jdk-unsafe-and-deprecated
+ check-forbidden-apis
true
jdk-unsafe
jdk-deprecated
+ commons-io-unsafe-${commons-io.version}
${top-level}/lucene/tools/forbiddenApis/servlet-api.txt
${top-level}/lucene/tools/forbiddenApis/tests.txt
+ ${top-level}/lucene/tools/forbiddenApis/executors.txt
diff --git a/dev-tools/maven/solr/webapp/pom.xml.template b/dev-tools/maven/solr/webapp/pom.xml.template
index 32aec1a5ddd..d047e537b30 100644
--- a/dev-tools/maven/solr/webapp/pom.xml.template
+++ b/dev-tools/maven/solr/webapp/pom.xml.template
@@ -119,11 +119,11 @@
forbiddenapis
- solr-check-forbidden-executors-and-jdk-unsafe-and-deprecated
+ solr-shared-check-forbidden-apis
none
- solr-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated
+ solr-shared-test-check-forbidden-apis
none