From d9e09d9377c8debfda1724316478f54386debca8 Mon Sep 17 00:00:00 2001 From: Raphael Girardot <raphael.girardot@synchrotron-soleil.fr> Date: Wed, 8 Apr 2020 12:01:06 +0000 Subject: [PATCH] Don't use slf4j-log4j12 nor commons-logging (CI-1281) --- pom.xml | 43 +++++++++++++++++++++++++++++++++---------- 1 file changed, 33 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index e1e9dc3..256e1af 100644 --- a/pom.xml +++ b/pom.xml @@ -1,6 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<project - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> @@ -47,6 +46,20 @@ </scm> <dependencies> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-api </artifactId> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>log4j-over-slf4j</artifactId> + <version>1.7.6</version> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>jcl-over-slf4j</artifactId> + <version>1.7.6</version> + </dependency> <dependency> <groupId>org.tango-controls</groupId> <artifactId>JTangoCommons</artifactId> @@ -67,10 +80,14 @@ <groupId>org.springframework</groupId> <artifactId>spring</artifactId> <exclusions> - <exclusion> - <groupId>log4j</groupId> - <artifactId>log4j</artifactId> - </exclusion> + <exclusion> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + </exclusion> + <exclusion> + <artifactId>commons-logging</artifactId> + <groupId>commons-logging</groupId> + </exclusion> </exclusions> </dependency> <dependency> @@ -97,10 +114,6 @@ <groupId>com.oracle</groupId> <artifactId>ojdbc6</artifactId> </dependency> - <!-- <dependency> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-log4j12</artifactId> - </dependency>--> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> @@ -111,6 +124,16 @@ <artifactId>spring-test</artifactId> <version>2.5.6</version> <scope>test</scope> + <exclusions> + <exclusion> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + </exclusion> + <exclusion> + <artifactId>commons-logging</artifactId> + <groupId>commons-logging</groupId> + </exclusion> + </exclusions> </dependency> </dependencies> -- GitLab