From 8034ae6e37301fd3e09df2c8b09ba885872a59e2 Mon Sep 17 00:00:00 2001 From: Ken Dombeck Date: Thu, 29 Sep 2016 11:39:45 -0500 Subject: [PATCH 1/2] Prevent spring-session from pulling in commons-logging Closes gh-7064 --- spring-boot-dependencies/pom.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml index 1c4638335e..7132bd99a0 100644 --- a/spring-boot-dependencies/pom.xml +++ b/spring-boot-dependencies/pom.xml @@ -2258,6 +2258,12 @@ org.springframework.session spring-session ${spring-session.version} + + + commons-logging + commons-logging + + org.springframework.session From cf4142dbc0f4e67ea2f350065de0d406c932180d Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 29 Sep 2016 21:08:15 +0100 Subject: [PATCH 2/2] Prevent htmlunit from pulling in commons-logging Update dependency management to exclude commons-logging and add an enforcer rule to spring-boot-samples to try and prevent unwanted commons-logging dependencies from sneaking back in again. Closes gh-7067 --- spring-boot-dependencies/pom.xml | 6 ++++++ spring-boot-samples/pom.xml | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml index 7132bd99a0..1c6924ed5f 100644 --- a/spring-boot-dependencies/pom.xml +++ b/spring-boot-dependencies/pom.xml @@ -1048,6 +1048,12 @@ net.sourceforge.htmlunit htmlunit ${htmlunit.version} + + + commons-logging + commons-logging + + net.sourceforge.jtds diff --git a/spring-boot-samples/pom.xml b/spring-boot-samples/pom.xml index cc354cab13..2047d88ad3 100644 --- a/spring-boot-samples/pom.xml +++ b/spring-boot-samples/pom.xml @@ -151,6 +151,29 @@ + + org.apache.maven.plugins + maven-enforcer-plugin + + + enforce-rules + + enforce + + + + + + commons-logging:*:* + + true + + + true + + + +