diff --git a/jetty-alpn/jetty-alpn-conscrypt-server/pom.xml b/jetty-alpn/jetty-alpn-conscrypt-server/pom.xml
index b12dd062925..bf92fec813c 100644
--- a/jetty-alpn/jetty-alpn-conscrypt-server/pom.xml
+++ b/jetty-alpn/jetty-alpn-conscrypt-server/pom.xml
@@ -30,7 +30,15 @@
jetty-io
${project.version}
-
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty.http2
http2-server
diff --git a/jetty-alpn/jetty-alpn-java-server/pom.xml b/jetty-alpn/jetty-alpn-java-server/pom.xml
index 918725febde..10725f09ccd 100644
--- a/jetty-alpn/jetty-alpn-java-server/pom.xml
+++ b/jetty-alpn/jetty-alpn-java-server/pom.xml
@@ -51,6 +51,15 @@
jetty-alpn-server
${project.version}
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty.http2
http2-server
diff --git a/jetty-alpn/jetty-alpn-server/pom.xml b/jetty-alpn/jetty-alpn-server/pom.xml
index 0cf6794b9fa..cd00d31091a 100644
--- a/jetty-alpn/jetty-alpn-server/pom.xml
+++ b/jetty-alpn/jetty-alpn-server/pom.xml
@@ -44,6 +44,15 @@
jetty-server
${project.version}
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty.toolchain
jetty-test-helper
diff --git a/jetty-annotations/pom.xml b/jetty-annotations/pom.xml
index 8eadf27f3b3..15e361f4cdb 100644
--- a/jetty-annotations/pom.xml
+++ b/jetty-annotations/pom.xml
@@ -69,6 +69,10 @@
org.ow2.asm
asm-commons
+
+ org.slf4j
+ slf4j-api
+
jakarta.transaction
@@ -86,5 +90,10 @@
${project.version}
test
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
diff --git a/jetty-ant/pom.xml b/jetty-ant/pom.xml
index b66fb07eaeb..c4d79c713f4 100644
--- a/jetty-ant/pom.xml
+++ b/jetty-ant/pom.xml
@@ -78,5 +78,14 @@
jetty-annotations
${project.version}
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
diff --git a/jetty-cdi/pom.xml b/jetty-cdi/pom.xml
index 21cd915ce5d..faf645f8f0e 100644
--- a/jetty-cdi/pom.xml
+++ b/jetty-cdi/pom.xml
@@ -32,6 +32,15 @@
${project.version}
compile
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
diff --git a/jetty-gcloud/jetty-gcloud-session-manager/pom.xml b/jetty-gcloud/jetty-gcloud-session-manager/pom.xml
index b4e02b8e072..5044d383aed 100644
--- a/jetty-gcloud/jetty-gcloud-session-manager/pom.xml
+++ b/jetty-gcloud/jetty-gcloud-session-manager/pom.xml
@@ -16,6 +16,10 @@
jetty-server
${project.version}
+
+ org.slf4j
+ slf4j-api
+
com.google.cloud
google-cloud-datastore
@@ -80,6 +84,11 @@
jetty-test-helper
test
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
diff --git a/jetty-hazelcast/pom.xml b/jetty-hazelcast/pom.xml
index cbc3957758f..1bb1d405806 100644
--- a/jetty-hazelcast/pom.xml
+++ b/jetty-hazelcast/pom.xml
@@ -38,6 +38,15 @@
jetty-server
${project.version}
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty
jetty-webapp
diff --git a/jetty-http-spi/pom.xml b/jetty-http-spi/pom.xml
index 2fb509cd685..91572f0487a 100644
--- a/jetty-http-spi/pom.xml
+++ b/jetty-http-spi/pom.xml
@@ -35,6 +35,16 @@
${project.version}
provided
+
+ org.slf4j
+ slf4j-api
+ provided
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
javax.xml
jaxws-api
diff --git a/jetty-http/pom.xml b/jetty-http/pom.xml
index 34620564bc7..4ec93d056c1 100644
--- a/jetty-http/pom.xml
+++ b/jetty-http/pom.xml
@@ -25,6 +25,10 @@
jetty-io
${project.version}
+
+ org.slf4j
+ slf4j-api
+
org.eclipse.jetty
diff --git a/jetty-infinispan/infinispan-common/pom.xml b/jetty-infinispan/infinispan-common/pom.xml
index 751d63b19e2..7fa7aab27cc 100644
--- a/jetty-infinispan/infinispan-common/pom.xml
+++ b/jetty-infinispan/infinispan-common/pom.xml
@@ -53,6 +53,15 @@
jetty-server
${project.version}
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.infinispan
infinispan-client-hotrod
diff --git a/jetty-jaas/pom.xml b/jetty-jaas/pom.xml
index 6662377bb20..0645ecf6288 100644
--- a/jetty-jaas/pom.xml
+++ b/jetty-jaas/pom.xml
@@ -42,13 +42,17 @@
- org.eclipse.jetty.toolchain
- jetty-test-helper
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
test
- org.slf4j
- slf4j-simple
+ org.eclipse.jetty.toolchain
+ jetty-test-helper
test
diff --git a/jetty-jaas/src/test/resources/jetty-logging.properties b/jetty-jaas/src/test/resources/jetty-logging.properties
new file mode 100644
index 00000000000..f0773d90fa5
--- /dev/null
+++ b/jetty-jaas/src/test/resources/jetty-logging.properties
@@ -0,0 +1,3 @@
+# Jetty Logging using jetty-slf4j-impl
+org.eclipse.jetty.LEVEL=INFO
+org.apache.directory.LEVEL=ERROR
\ No newline at end of file
diff --git a/jetty-jaas/src/test/resources/simplelogger.properties b/jetty-jaas/src/test/resources/simplelogger.properties
deleted file mode 100644
index 921e53daa3a..00000000000
--- a/jetty-jaas/src/test/resources/simplelogger.properties
+++ /dev/null
@@ -1 +0,0 @@
-org.slf4j.simpleLogger.log.org.apache.directory=error
\ No newline at end of file
diff --git a/jetty-jaspi/pom.xml b/jetty-jaspi/pom.xml
index 0d16ccb6974..6a8f17b899b 100644
--- a/jetty-jaspi/pom.xml
+++ b/jetty-jaspi/pom.xml
@@ -50,6 +50,15 @@
jetty-security
${project.version}
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty.toolchain
jetty-test-helper
diff --git a/jetty-jmx/pom.xml b/jetty-jmx/pom.xml
index 9115002325a..9fac343c518 100644
--- a/jetty-jmx/pom.xml
+++ b/jetty-jmx/pom.xml
@@ -42,6 +42,10 @@
jetty-util
${project.version}
+
+ org.slf4j
+ slf4j-api
+
org.eclipse.jetty
jetty-slf4j-impl
diff --git a/jetty-jndi/pom.xml b/jetty-jndi/pom.xml
index a9fa17ea26f..306faaf19b9 100644
--- a/jetty-jndi/pom.xml
+++ b/jetty-jndi/pom.xml
@@ -51,7 +51,15 @@
jetty-util
${project.version}
-
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty.toolchain
jetty-test-helper
diff --git a/jetty-nosql/pom.xml b/jetty-nosql/pom.xml
index 1d3f099c606..af03a0f479c 100644
--- a/jetty-nosql/pom.xml
+++ b/jetty-nosql/pom.xml
@@ -21,11 +21,6 @@
jetty-server
${project.version}
-
- org.eclipse.jetty.toolchain
- jetty-test-helper
- test
-
org.eclipse.jetty
jetty-jmx
@@ -39,6 +34,20 @@
jar
compile
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
+
+ org.eclipse.jetty.toolchain
+ jetty-test-helper
+ test
+
org.eclipse.jetty.tests
test-sessions-common
diff --git a/jetty-openid/pom.xml b/jetty-openid/pom.xml
index ac1cb6bebb6..14106194db4 100644
--- a/jetty-openid/pom.xml
+++ b/jetty-openid/pom.xml
@@ -66,6 +66,15 @@
jetty-util-ajax
${project.version}
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty
jetty-servlet
diff --git a/jetty-plus/pom.xml b/jetty-plus/pom.xml
index 5cae42b832e..106a4d50eee 100644
--- a/jetty-plus/pom.xml
+++ b/jetty-plus/pom.xml
@@ -68,7 +68,15 @@
jetty-webapp
${project.version}
-
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.apache.derby
derby
diff --git a/jetty-quickstart/pom.xml b/jetty-quickstart/pom.xml
index 1134d4ff73e..f55c9242981 100644
--- a/jetty-quickstart/pom.xml
+++ b/jetty-quickstart/pom.xml
@@ -30,7 +30,15 @@
jetty-annotations
${project.version}
-
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty.toolchain
jetty-test-helper
diff --git a/jetty-rewrite/pom.xml b/jetty-rewrite/pom.xml
index 76b9b905bc1..5083912a1a8 100644
--- a/jetty-rewrite/pom.xml
+++ b/jetty-rewrite/pom.xml
@@ -36,7 +36,15 @@
org.eclipse.jetty.toolchain
jetty-servlet-api
-
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty.tests
jetty-http-tools
diff --git a/jetty-runner/pom.xml b/jetty-runner/pom.xml
index 96a76bed6f8..b979e13e777 100644
--- a/jetty-runner/pom.xml
+++ b/jetty-runner/pom.xml
@@ -131,5 +131,14 @@
apache-jstl
${project.version}
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ runtime
+
diff --git a/jetty-runner/src/main/resources/jetty-logging.properties b/jetty-runner/src/main/resources/jetty-logging.properties
new file mode 100644
index 00000000000..1de0a5d8bb8
--- /dev/null
+++ b/jetty-runner/src/main/resources/jetty-logging.properties
@@ -0,0 +1,2 @@
+# Jetty Logging using jetty-slf4j-impl
+org.eclipse.jetty.LEVEL=INFO
\ No newline at end of file
diff --git a/jetty-server/pom.xml b/jetty-server/pom.xml
index ceccb93e0f3..f37980beea8 100644
--- a/jetty-server/pom.xml
+++ b/jetty-server/pom.xml
@@ -89,6 +89,11 @@
${project.version}
test
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
diff --git a/jetty-slf4j-impl/src/test/java/org/eclipse/jetty/logging/Slf4jEffort.java b/jetty-slf4j-impl/src/test/java/org/eclipse/jetty/logging/Slf4jEffort.java
index 132f00f3450..8a19e45138c 100644
--- a/jetty-slf4j-impl/src/test/java/org/eclipse/jetty/logging/Slf4jEffort.java
+++ b/jetty-slf4j-impl/src/test/java/org/eclipse/jetty/logging/Slf4jEffort.java
@@ -65,50 +65,57 @@ public class Slf4jEffort
AtomicInteger countPomSlf4jImpls = new AtomicInteger(0);
AtomicInteger countOldLogClassProps = new AtomicInteger(0);
- getProjectsStream(root).forEach((pom) ->
- {
- Path project = pom.getParent();
- try
+ getProjectsStream(root)
+ .filter(pom ->
{
- Path testLoggingProps = project.resolve("src/test/resources/jetty-logging.properties");
-
- boolean isMainSrcUsingLogging = getSources(project.resolve("src/main/java")).anyMatch(Slf4jEffort::isUsingLogging);
- boolean isTestSrcUsingLogging = getSources(project.resolve("src/test/java")).anyMatch(Slf4jEffort::isUsingLogging);
-
- if (isMainSrcUsingLogging || isTestSrcUsingLogging)
+ String fullpath = pom.toString();
+ return !((fullpath.contains("/jetty-osgi") ||
+ fullpath.contains("/jetty-slf4j-impl/")));
+ })
+ .forEach((pom) ->
+ {
+ Path project = pom.getParent();
+ try
{
- // Must include slf4j in module-info and pom
- Path moduleInfo = project.resolve("src/main/java/module-info.java");
- if (Files.exists(moduleInfo) && isMainSrcUsingLogging && !isLoggingJpmsPresent(moduleInfo))
- {
- System.err.printf("[Missing: JPMS] %s%n", moduleInfo);
- countJpms.incrementAndGet();
- }
+ Path testLoggingProps = project.resolve("src/test/resources/jetty-logging.properties");
- if (!isSlf4jDepPresent(pom))
- {
- // System.err.printf("[Missing: Dep: slf4j-api] %s%n", pom);
- countPomSlf4jApis.incrementAndGet();
- }
+ boolean isMainSrcUsingLogging = getSources(project.resolve("src/main/java")).anyMatch(Slf4jEffort::isUsingLogging);
+ boolean isTestSrcUsingLogging = getSources(project.resolve("src/test/java")).anyMatch(Slf4jEffort::isUsingLogging);
- if (isTestSrcUsingLogging && !isSlf4jImplDepPresent(pom))
+ if (isMainSrcUsingLogging || isTestSrcUsingLogging)
{
- // System.err.printf("[Missing: Dep: jetty-slf4j-impl] %s%n", pom);
- countPomSlf4jImpls.incrementAndGet();
- }
+ if (!isSlf4jImplDepPresent(pom))
+ {
+ System.err.printf("[Missing: Dep: jetty-slf4j-impl] %s%n", pom);
+ countPomSlf4jImpls.incrementAndGet();
+ }
- if (Files.exists(testLoggingProps) && isOldLogClassPropPresent(testLoggingProps))
- {
- System.err.printf("[Deprecated: log.class=LogImpl] %s%n", testLoggingProps);
- countOldLogClassProps.incrementAndGet();
+ // Must include slf4j in module-info and pom
+ Path moduleInfo = project.resolve("src/main/java/module-info.java");
+ if (Files.exists(moduleInfo) && isMainSrcUsingLogging && !isLoggingJpmsPresent(moduleInfo))
+ {
+ System.err.printf("[Missing: JPMS] %s%n", moduleInfo);
+ countJpms.incrementAndGet();
+ }
+
+ if (!isSlf4jDepPresent(pom))
+ {
+ System.err.printf("[Missing: Dep: slf4j-api] %s%n", pom);
+ countPomSlf4jApis.incrementAndGet();
+ }
+
+ if (Files.exists(testLoggingProps) && isOldLogClassPropPresent(testLoggingProps))
+ {
+ System.err.printf("[Deprecated: log.class=LogImpl] %s%n", testLoggingProps);
+ countOldLogClassProps.incrementAndGet();
+ }
}
}
- }
- catch (IOException e)
- {
- e.printStackTrace();
- }
- });
+ catch (IOException e)
+ {
+ e.printStackTrace();
+ }
+ });
System.out.printf("JPMS (module-info.java) to fix: %d%n", countJpms.get());
System.out.printf("POMS (pom.xml) - slf4j-api to fix: %d%n", countPomSlf4jApis.get());
@@ -184,7 +191,9 @@ public class Slf4jEffort
String line;
while ((line = reader.readLine()) != null)
{
- if (line.contains("requires org.slf4j;"))
+ if (line.contains("requires org.slf4j;") ||
+ line.contains("requires transitive org.slf4j;") ||
+ line.contains("requires static org.slf4j;"))
{
return true;
}
diff --git a/jetty-unixsocket/jetty-unixsocket-server/pom.xml b/jetty-unixsocket/jetty-unixsocket-server/pom.xml
index 0ba25d24bbc..1453387204f 100644
--- a/jetty-unixsocket/jetty-unixsocket-server/pom.xml
+++ b/jetty-unixsocket/jetty-unixsocket-server/pom.xml
@@ -25,6 +25,15 @@
jetty-server
${project.version}
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
diff --git a/jetty-util/pom.xml b/jetty-util/pom.xml
index 741117f0edf..51c3feb1b88 100644
--- a/jetty-util/pom.xml
+++ b/jetty-util/pom.xml
@@ -61,9 +61,6 @@
${settings.localRepository}
-
- @{argLine} ${jetty.surefire.argLine} --add-modules org.slf4j
-
@@ -86,6 +83,7 @@
org.eclipse.jetty
jetty-slf4j-impl
+ test
diff --git a/jetty-websocket/websocket-javax-common/pom.xml b/jetty-websocket/websocket-javax-common/pom.xml
index 26688bbf644..d606965d46c 100644
--- a/jetty-websocket/websocket-javax-common/pom.xml
+++ b/jetty-websocket/websocket-javax-common/pom.xml
@@ -80,7 +80,15 @@
org.eclipse.jetty.toolchain
jetty-javax-websocket-api
-
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty.toolchain
jetty-test-helper
diff --git a/jetty-websocket/websocket-javax-server/pom.xml b/jetty-websocket/websocket-javax-server/pom.xml
index 5f9b00e0a64..f33263ba474 100644
--- a/jetty-websocket/websocket-javax-server/pom.xml
+++ b/jetty-websocket/websocket-javax-server/pom.xml
@@ -34,6 +34,15 @@
org.eclipse.jetty.toolchain
jetty-javax-websocket-api
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty.toolchain
jetty-test-helper
diff --git a/jetty-websocket/websocket-javax-tests/pom.xml b/jetty-websocket/websocket-javax-tests/pom.xml
index 23ced0fc942..44c56f0f952 100644
--- a/jetty-websocket/websocket-javax-tests/pom.xml
+++ b/jetty-websocket/websocket-javax-tests/pom.xml
@@ -15,6 +15,10 @@
+
+ org.slf4j
+ slf4j-api
+
org.eclipse.jetty.websocket
websocket-javax-client
diff --git a/jetty-websocket/websocket-jetty-client/pom.xml b/jetty-websocket/websocket-jetty-client/pom.xml
index 450480ce620..ad9d334d39f 100644
--- a/jetty-websocket/websocket-jetty-client/pom.xml
+++ b/jetty-websocket/websocket-jetty-client/pom.xml
@@ -30,7 +30,15 @@
jetty-client
${project.version}
-
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty.toolchain
jetty-test-helper
diff --git a/jetty-websocket/websocket-jetty-common/pom.xml b/jetty-websocket/websocket-jetty-common/pom.xml
index 5fb6fb314c3..83c726eb91d 100644
--- a/jetty-websocket/websocket-jetty-common/pom.xml
+++ b/jetty-websocket/websocket-jetty-common/pom.xml
@@ -71,7 +71,15 @@
jetty-io
${project.version}
-
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty.toolchain
jetty-test-helper
diff --git a/jetty-websocket/websocket-jetty-server/pom.xml b/jetty-websocket/websocket-jetty-server/pom.xml
index 40a1c9324e5..811fa6c6f89 100644
--- a/jetty-websocket/websocket-jetty-server/pom.xml
+++ b/jetty-websocket/websocket-jetty-server/pom.xml
@@ -55,6 +55,15 @@
org.eclipse.jetty.toolchain
jetty-servlet-api
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty.toolchain
jetty-test-helper
diff --git a/jetty-websocket/websocket-jetty-tests/pom.xml b/jetty-websocket/websocket-jetty-tests/pom.xml
index 7c3588d6562..57b21525e60 100644
--- a/jetty-websocket/websocket-jetty-tests/pom.xml
+++ b/jetty-websocket/websocket-jetty-tests/pom.xml
@@ -15,6 +15,11 @@
+
+ org.slf4j
+ slf4j-api
+ test
+
org.eclipse.jetty.websocket
websocket-jetty-api
diff --git a/jetty-websocket/websocket-servlet/pom.xml b/jetty-websocket/websocket-servlet/pom.xml
index 12b696830b6..beeeab4b0fc 100644
--- a/jetty-websocket/websocket-servlet/pom.xml
+++ b/jetty-websocket/websocket-servlet/pom.xml
@@ -25,6 +25,15 @@
jetty-servlet
${project.version}
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty.toolchain
jetty-test-helper
diff --git a/jetty-websocket/websocket-util/pom.xml b/jetty-websocket/websocket-util/pom.xml
index dece207f4d3..9412101ce9f 100644
--- a/jetty-websocket/websocket-util/pom.xml
+++ b/jetty-websocket/websocket-util/pom.xml
@@ -51,6 +51,15 @@
websocket-core
${project.version}
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty.toolchain
jetty-test-helper
diff --git a/jetty-xml/pom.xml b/jetty-xml/pom.xml
index c835bc526cc..3b178e25ed1 100644
--- a/jetty-xml/pom.xml
+++ b/jetty-xml/pom.xml
@@ -40,6 +40,15 @@
jetty-util
${project.version}
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty
jetty-slf4j-impl
diff --git a/tests/jetty-jmh/pom.xml b/tests/jetty-jmh/pom.xml
index bc4827112ef..deca7abf110 100644
--- a/tests/jetty-jmh/pom.xml
+++ b/tests/jetty-jmh/pom.xml
@@ -97,6 +97,14 @@
org.eclipse.jetty.toolchain
jetty-servlet-api
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+
org.eclipse.jetty.toolchain
jetty-test-helper
diff --git a/tests/test-distribution/pom.xml b/tests/test-distribution/pom.xml
index 91f1ee72cfb..59abe41b08b 100644
--- a/tests/test-distribution/pom.xml
+++ b/tests/test-distribution/pom.xml
@@ -19,6 +19,10 @@
jetty-util
${project.version}
+
+ org.slf4j
+ slf4j-api
+
org.apache.maven
maven-artifact
@@ -44,6 +48,11 @@
${maven.resolver.version}
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty
jetty-distribution
diff --git a/tests/test-http-client-transport/pom.xml b/tests/test-http-client-transport/pom.xml
index 0df91f68a13..ceb4ed5efe4 100644
--- a/tests/test-http-client-transport/pom.xml
+++ b/tests/test-http-client-transport/pom.xml
@@ -41,6 +41,16 @@
+
+ org.slf4j
+ slf4j-api
+ test
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty
jetty-alpn-java-client
diff --git a/tests/test-integration/pom.xml b/tests/test-integration/pom.xml
index 9537a2bb6ae..51280d90db0 100644
--- a/tests/test-integration/pom.xml
+++ b/tests/test-integration/pom.xml
@@ -93,6 +93,10 @@
jetty-client
${project.version}
+
+ org.slf4j
+ slf4j-api
+
org.eclipse.jetty
jetty-distribution
diff --git a/tests/test-jmx/jmx-webapp/pom.xml b/tests/test-jmx/jmx-webapp/pom.xml
index 38445f8c86f..c3478a6b970 100644
--- a/tests/test-jmx/jmx-webapp/pom.xml
+++ b/tests/test-jmx/jmx-webapp/pom.xml
@@ -25,6 +25,15 @@
jetty-jmx
${project.version}
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
jmx-webapp
diff --git a/tests/test-quickstart/pom.xml b/tests/test-quickstart/pom.xml
index dd977fb060a..5cee5d86f66 100644
--- a/tests/test-quickstart/pom.xml
+++ b/tests/test-quickstart/pom.xml
@@ -102,7 +102,14 @@
org.eclipse.jetty.toolchain
jetty-test-helper
-
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+
diff --git a/tests/test-sessions/test-mongodb-sessions/pom.xml b/tests/test-sessions/test-mongodb-sessions/pom.xml
index 1c1f7718f8e..46961d5b918 100644
--- a/tests/test-sessions/test-mongodb-sessions/pom.xml
+++ b/tests/test-sessions/test-mongodb-sessions/pom.xml
@@ -90,6 +90,15 @@
${project.version}
true
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty.toolchain
jetty-test-helper
diff --git a/tests/test-sessions/test-sessions-common/pom.xml b/tests/test-sessions/test-sessions-common/pom.xml
index 906c26ddeb8..d47a3bae6fe 100644
--- a/tests/test-sessions/test-sessions-common/pom.xml
+++ b/tests/test-sessions/test-sessions-common/pom.xml
@@ -29,10 +29,13 @@
jetty-client
${project.version}
+
+ org.slf4j
+ slf4j-api
+
org.eclipse.jetty
jetty-slf4j-impl
- ${project.version}
org.eclipse.jetty.toolchain
diff --git a/tests/test-webapps/test-websocket-webapp/pom.xml b/tests/test-webapps/test-websocket-webapp/pom.xml
index 72852247e0e..5aa01418d9a 100644
--- a/tests/test-webapps/test-websocket-webapp/pom.xml
+++ b/tests/test-webapps/test-websocket-webapp/pom.xml
@@ -13,6 +13,15 @@
Test :: Jetty Websocket Simple Webapp
+
+ org.slf4j
+ slf4j-api
+
+
+ org.eclipse.jetty
+ jetty-slf4j-impl
+ test
+
org.eclipse.jetty.toolchain
jetty-javax-websocket-api