This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push:
new 492f7618bd Fix multiple SLF4J providers warning in tests (#11480)
492f7618bd is described below
commit 492f7618bdf5f6e3991214e6c17fdb4f8eda72e6
Author: Steve Armstrong <[email protected]>
AuthorDate: Wed Nov 26 06:37:56 2025 -0400
Fix multiple SLF4J providers warning in tests (#11480)
Remove slf4j-simple test dependency from maven-core, maven-impl, and
maven-resolver-provider to eliminate "multiple SLF4J providers" warnings.
maven-core already depends on maven-logging which provides
MavenServiceProvider. For maven-impl and maven-resolver-provider,
replace slf4j-simple with maven-logging to use Maven's own SLF4J
provider consistently across all modules.
Fixes #10949
Co-authored-by: W0474997SteveArmstrong
<[email protected]>
---
compat/maven-resolver-provider/pom.xml | 4 ++--
impl/maven-core/pom.xml | 5 -----
impl/maven-impl/pom.xml | 4 ++--
3 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/compat/maven-resolver-provider/pom.xml
b/compat/maven-resolver-provider/pom.xml
index 28ba5230de..79c7507bec 100644
--- a/compat/maven-resolver-provider/pom.xml
+++ b/compat/maven-resolver-provider/pom.xml
@@ -157,8 +157,8 @@ under the License.
<scope>test</scope>
</dependency>
<dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-simple</artifactId>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-logging</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
diff --git a/impl/maven-core/pom.xml b/impl/maven-core/pom.xml
index 534838b51d..07ffa6662b 100644
--- a/impl/maven-core/pom.xml
+++ b/impl/maven-core/pom.xml
@@ -200,11 +200,6 @@ under the License.
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-simple</artifactId>
- <scope>test</scope>
- </dependency>
<dependency>
<groupId>commons-jxpath</groupId>
<artifactId>commons-jxpath</artifactId>
diff --git a/impl/maven-impl/pom.xml b/impl/maven-impl/pom.xml
index 1e79d03c52..e2005c800e 100644
--- a/impl/maven-impl/pom.xml
+++ b/impl/maven-impl/pom.xml
@@ -131,8 +131,8 @@ under the License.
<scope>test</scope>
</dependency>
<dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-simple</artifactId>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-logging</artifactId>
<scope>test</scope>
</dependency>
<dependency>