FLUME-3299 Fix log4j scopes in pom files
authorFerenc Szabo <szaboferee@apache.org>
Wed, 28 Nov 2018 09:31:38 +0000 (10:31 +0100)
committerFerenc Szabo <szaboferee@apache.org>
Wed, 28 Nov 2018 09:31:38 +0000 (10:31 +0100)
Moving log4j dependencies to test scope.
Adding log4j as dependency to flume-ng-dist to pack it in the binary tarball.

This closes #249

Reviewers: Endre Major, Peter Turcsanyi

(Ferenc Szabo via Ferenc Szabo)

flume-ng-auth/pom.xml
flume-ng-configuration/pom.xml
flume-ng-core/pom.xml
flume-ng-dist/pom.xml
flume-ng-node/pom.xml

index ab05dc7..e2b6d65 100644 (file)
@@ -50,11 +50,13 @@ limitations under the License.
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
       <artifactId>log4j-slf4j-impl</artifactId>
+      <scope>test</scope>
     </dependency>
 
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
       <artifactId>log4j-1.2-api</artifactId>
+      <scope>test</scope>
     </dependency>
 
     <dependency>
index ced620f..64ae5c6 100644 (file)
@@ -48,11 +48,13 @@ limitations under the License.
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
       <artifactId>log4j-slf4j-impl</artifactId>
+      <scope>test</scope>
     </dependency>
 
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
       <artifactId>log4j-1.2-api</artifactId>
+      <scope>test</scope>
     </dependency>
 
     <dependency>
index 8dc32e4..999bbb1 100644 (file)
@@ -304,6 +304,7 @@ limitations under the License.
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
       <artifactId>log4j-1.2-api</artifactId>
+      <scope>test</scope>
     </dependency>
 
     <dependency>
index bcd8b72..de39c2f 100644 (file)
       <groupId>org.apache.flume</groupId>
       <artifactId>flume-ng-auth</artifactId>
     </dependency>
+    <dependency>
+      <groupId>org.apache.logging.log4j</groupId>
+      <artifactId>log4j-slf4j-impl</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.logging.log4j</groupId>
+      <artifactId>log4j-1.2-api</artifactId>
+    </dependency>
   </dependencies>
 
 </project>
index 80ad34b..cc7bb13 100644 (file)
@@ -87,6 +87,7 @@
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
       <artifactId>log4j-1.2-api</artifactId>
+      <scope>test</scope>
     </dependency>
 
     <dependency>