Skip to content

Commit 8f42621

Browse files
committed
Added Flume sink exclusions back, and added netty to test dependencies
1 parent 93b559f commit 8f42621

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

external/flume-sink/pom.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,31 @@
3838
<groupId>org.apache.flume</groupId>
3939
<artifactId>flume-ng-sdk</artifactId>
4040
<version>1.4.0</version>
41+
<exclusions>
42+
<exclusion>
43+
<groupId>io.netty</groupId>
44+
<artifactId>netty</artifactId>
45+
</exclusion>
46+
<exclusion>
47+
<groupId>org.apache.thrift</groupId>
48+
<artifactId>libthrift</artifactId>
49+
</exclusion>
50+
</exclusions>
4151
</dependency>
4252
<dependency>
4353
<groupId>org.apache.flume</groupId>
4454
<artifactId>flume-ng-core</artifactId>
4555
<version>1.4.0</version>
56+
<exclusions>
57+
<exclusion>
58+
<groupId>io.netty</groupId>
59+
<artifactId>netty</artifactId>
60+
</exclusion>
61+
<exclusion>
62+
<groupId>org.apache.thrift</groupId>
63+
<artifactId>libthrift</artifactId>
64+
</exclusion>
65+
</exclusions>
4666
</dependency>
4767
<dependency>
4868
<groupId>org.scala-lang</groupId>
@@ -53,6 +73,18 @@
5373
<artifactId>scalatest_${scala.binary.version}</artifactId>
5474
<scope>test</scope>
5575
</dependency>
76+
<dependency>
77+
<!--
78+
Netty explicitly added in test as it has been excluded from
79+
Flume dependency (to avoid runtime problems when running with
80+
Spark) but unit tests need it. Version of Netty on which
81+
Flume 1.4.0 depends on is "3.4.0.Final" .
82+
-->
83+
<groupId>io.netty</groupId>
84+
<artifactId>netty</artifactId>
85+
<version>3.4.0.Final</version>
86+
<scope>test</scope>
87+
</dependency>
5688
</dependencies>
5789
<build>
5890
<outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory>

0 commit comments

Comments
 (0)