AMQ-9242 - remove compile time dependency log4j-slf4j2-impl dependency (#997) from activemq-partition

diff --git a/activemq-partition/pom.xml b/activemq-partition/pom.xml
index 032b70f..901c869 100644
--- a/activemq-partition/pom.xml
+++ b/activemq-partition/pom.xml
@@ -32,7 +32,6 @@
   <description>Used to partition clients over a cluster of brokers</description>
 
   <dependencies>
-
     <dependency>
       <groupId>org.apache.activemq</groupId>
       <artifactId>activemq-broker</artifactId>
@@ -50,10 +49,6 @@
       <artifactId>org.linkedin.zookeeper-impl</artifactId>
     </dependency>
     <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-slf4j2-impl</artifactId>
-    </dependency>
-    <dependency>
       <groupId>org.linkedin</groupId>
       <artifactId>org.linkedin.util-core</artifactId>
     </dependency>
@@ -78,6 +73,17 @@
 
     <!-- Testing Dependencies -->
     <dependency>
+      <groupId>org.apache.logging.log4j</groupId>
+      <artifactId>log4j-core</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.logging.log4j</groupId>
+      <artifactId>log4j-slf4j2-impl</artifactId>
+      <scope>test</scope>
+    </dependency>
+
+    <dependency>
       <groupId>org.apache.activemq</groupId>
       <artifactId>activemq-broker</artifactId>
       <type>test-jar</type>