From cf4142dbc0f4e67ea2f350065de0d406c932180d Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 29 Sep 2016 21:08:15 +0100 Subject: [PATCH] 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 + + + +