From 6a3f122375ddede72a7fd8cd51a93bcdb94599d7 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Thu, 16 May 2019 15:33:00 +0200 Subject: [PATCH] allow slf4f from sbml library --- converter-sbml/pom.xml | 40 ++++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/converter-sbml/pom.xml b/converter-sbml/pom.xml index feff17ab42..c91444737d 100644 --- a/converter-sbml/pom.xml +++ b/converter-sbml/pom.xml @@ -58,7 +58,7 @@ <version>1.0</version> </dependency> - <!-- Log4J2--> + <!-- Log4J2 --> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> @@ -69,6 +69,12 @@ <artifactId>log4j-core</artifactId> <version>${log4j2.version}</version> </dependency> + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-slf4j-impl</artifactId> + <version>${log4j2.version}</version> + </dependency> + <!-- mockito used for testing --> <dependency> @@ -82,12 +88,19 @@ <groupId>org.sbml.jsbml</groupId> <artifactId>jsbml</artifactId> <version>${jsbml.version}</version> - <!-- for now we use lower version of log4j and this one introduce some - problem with tomcat logging --> + <!-- we use higher version of log4j --> <exclusions> <exclusion> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-api</artifactId> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-api</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-core</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-slf4j-impl</artifactId> </exclusion> <exclusion> <groupId>junit</groupId> @@ -109,9 +122,20 @@ <groupId>org.sbml.jsbml</groupId> <artifactId>jsbml-core</artifactId> <version>${jsbml.version}</version> - <!-- for now we use lower version of log4j and this one introduce some - problem with tomcat logging --> + <!-- we use higher version of log4j --> <exclusions> + <exclusion> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-api</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-core</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-slf4j-impl</artifactId> + </exclusion> <exclusion> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> @@ -139,7 +163,7 @@ <artifactId>commons-text</artifactId> <version>${apache.commons-text.version}</version> </dependency> - + <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> -- GitLab