This is an automated email from the ASF dual-hosted git repository. clebertsuconic pushed a commit to branch new-logging in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
commit 9dae1eb11a6a9823e8a52dbf97bae8bee6d72b73 Author: Robbie Gemmell <[email protected]> AuthorDate: Mon Jul 11 16:16:43 2022 +0100 add commons-logging -> SLF4J bridge and exclude commons-logging, suppresses unconfigured log spam from beanutils etc --- artemis-commons/pom.xml | 5 +++++ artemis-jdbc-store/pom.xml | 5 +++++ artemis-rest/pom.xml | 5 +++++ artemis-server/pom.xml | 5 +++++ pom.xml | 42 ++++++++++++++++++++++++++++++++---------- 5 files changed, 52 insertions(+), 10 deletions(-) diff --git a/artemis-commons/pom.xml b/artemis-commons/pom.xml index 0a9affe1f2..452f791b04 100644 --- a/artemis-commons/pom.xml +++ b/artemis-commons/pom.xml @@ -92,6 +92,11 @@ <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> </dependency> + <dependency> + <!-- Needed to replace commons-logging for commons-beanutils --> + <groupId>org.slf4j</groupId> + <artifactId>jcl-over-slf4j</artifactId> + </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> diff --git a/artemis-jdbc-store/pom.xml b/artemis-jdbc-store/pom.xml index 0af30b9390..7b98c50985 100644 --- a/artemis-jdbc-store/pom.xml +++ b/artemis-jdbc-store/pom.xml @@ -64,6 +64,11 @@ <groupId>org.apache.commons</groupId> <artifactId>commons-dbcp2</artifactId> </dependency> + <dependency> + <!-- Needed to replace commons-logging for commons-dbcp2 --> + <groupId>org.slf4j</groupId> + <artifactId>jcl-over-slf4j</artifactId> + </dependency> <!-- Database driver support --> <dependency> diff --git a/artemis-rest/pom.xml b/artemis-rest/pom.xml index 4b2a1d5c6a..b6b93f82ec 100644 --- a/artemis-rest/pom.xml +++ b/artemis-rest/pom.xml @@ -149,6 +149,11 @@ <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> </dependency> + <dependency> + <!-- Needed to replace commons-logging for httpclient --> + <groupId>org.slf4j</groupId> + <artifactId>jcl-over-slf4j</artifactId> + </dependency> <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> diff --git a/artemis-server/pom.xml b/artemis-server/pom.xml index c4923be6cf..3f34c8ee0a 100644 --- a/artemis-server/pom.xml +++ b/artemis-server/pom.xml @@ -158,6 +158,11 @@ <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> </dependency> + <dependency> + <!-- Needed to replace commons-logging for commons-beanutils --> + <groupId>org.slf4j</groupId> + <artifactId>jcl-over-slf4j</artifactId> + </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-configuration2</artifactId> diff --git a/pom.xml b/pom.xml index 22f49428e0..008520be9e 100644 --- a/pom.xml +++ b/pom.xml @@ -498,10 +498,16 @@ <!-- License: Apache 2.0 --> </dependency> <dependency> - <groupId>org.apache.commons</groupId> - <artifactId>commons-configuration2</artifactId> - <version>${commons.config.version}</version> - <!-- License: Apache 2.0 --> + <groupId>org.apache.commons</groupId> + <artifactId>commons-configuration2</artifactId> + <version>${commons.config.version}</version> + <!-- License: Apache 2.0 --> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> </dependency> <dependency> <groupId>org.apache.commons</groupId> @@ -789,14 +795,18 @@ <artifactId>commons-beanutils</artifactId> <version>${commons.beanutils.version}</version> <!-- License: Apache 2.0 --> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> </dependency> - - <!-- needed by commons-beanutils--> + <!-- needed to replace commons-logging for commons-beanutils etc --> <dependency> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - <version>1.2</version> - <!-- License: Apache 2.0 --> + <groupId>org.slf4j</groupId> + <artifactId>jcl-over-slf4j</artifactId> + <version>${slf4j.version}</version> </dependency> <!-- needed by artemis-selector --> @@ -822,6 +832,12 @@ <artifactId>commons-dbcp2</artifactId> <version>${commons.dbcp2.version}</version> <!-- license Apache 2 --> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> </dependency> <!-- used by commons-dbcp2 --> <dependency> @@ -1070,6 +1086,12 @@ <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>${apache.httpclient.version}</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> </dependency> </dependencies>
