Preparing Spark release v2.2.1-rc1
[spark.git] / external / flume-sink / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 ~ Licensed to the Apache Software Foundation (ASF) under one or more
4 ~ contributor license agreements. See the NOTICE file distributed with
5 ~ this work for additional information regarding copyright ownership.
6 ~ The ASF licenses this file to You under the Apache License, Version 2.0
7 ~ (the "License"); you may not use this file except in compliance with
8 ~ the License. You may obtain a copy of the License at
9 ~
10 ~ http://www.apache.org/licenses/LICENSE-2.0
11 ~
12 ~ Unless required by applicable law or agreed to in writing, software
13 ~ distributed under the License is distributed on an "AS IS" BASIS,
14 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ~ See the License for the specific language governing permissions and
16 ~ limitations under the License.
17 -->
18
19 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20 <modelVersion>4.0.0</modelVersion>
21 <parent>
22 <groupId>org.apache.spark</groupId>
23 <artifactId>spark-parent_2.11</artifactId>
24 <version>2.2.1</version>
25 <relativePath>../../pom.xml</relativePath>
26 </parent>
27
28 <artifactId>spark-streaming-flume-sink_2.11</artifactId>
29 <properties>
30 <sbt.project.name>streaming-flume-sink</sbt.project.name>
31 </properties>
32 <packaging>jar</packaging>
33 <name>Spark Project External Flume Sink</name>
34 <url>http://spark.apache.org/</url>
35
36 <dependencies>
37 <dependency>
38 <groupId>org.apache.flume</groupId>
39 <artifactId>flume-ng-sdk</artifactId>
40 <exclusions>
41 <!-- Guava is excluded to avoid its use in this module. -->
42 <exclusion>
43 <groupId>com.google.guava</groupId>
44 <artifactId>guava</artifactId>
45 </exclusion>
46 <!--
47 Exclude libthrift since the flume poms seem to confuse sbt, which fails to find the
48 dependency.
49 -->
50 <exclusion>
51 <groupId>org.apache.thrift</groupId>
52 <artifactId>libthrift</artifactId>
53 </exclusion>
54 </exclusions>
55 </dependency>
56 <dependency>
57 <groupId>org.apache.flume</groupId>
58 <artifactId>flume-ng-core</artifactId>
59 <exclusions>
60 <exclusion>
61 <groupId>com.google.guava</groupId>
62 <artifactId>guava</artifactId>
63 </exclusion>
64 <exclusion>
65 <groupId>org.apache.thrift</groupId>
66 <artifactId>libthrift</artifactId>
67 </exclusion>
68 </exclusions>
69 </dependency>
70 <dependency>
71 <groupId>org.scala-lang</groupId>
72 <artifactId>scala-library</artifactId>
73 </dependency>
74 <dependency>
75 <!-- Add Guava in test scope since flume actually needs it. -->
76 <groupId>com.google.guava</groupId>
77 <artifactId>guava</artifactId>
78 <scope>test</scope>
79 </dependency>
80 <dependency>
81 <!--
82 Netty explicitly added in test as it has been excluded from
83 Flume dependency (to avoid runtime problems when running with
84 Spark) but unit tests need it. Version of Netty on which
85 Flume 1.4.0 depends on is "3.4.0.Final" .
86 -->
87 <groupId>io.netty</groupId>
88 <artifactId>netty</artifactId>
89 <version>3.4.0.Final</version>
90 <scope>test</scope>
91 </dependency>
92 <dependency>
93 <groupId>org.apache.spark</groupId>
94 <artifactId>spark-tags_${scala.binary.version}</artifactId>
95 </dependency>
96
97 <!--
98 This spark-tags test-dep is needed even though it isn't used in this module, otherwise testing-cmds that exclude
99 them will yield errors.
100 -->
101 <dependency>
102 <groupId>org.apache.spark</groupId>
103 <artifactId>spark-tags_${scala.binary.version}</artifactId>
104 <type>test-jar</type>
105 <scope>test</scope>
106 </dependency>
107
108 </dependencies>
109 <build>
110 <outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory>
111 <testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory>
112 <plugins>
113 <plugin>
114 <groupId>org.apache.avro</groupId>
115 <artifactId>avro-maven-plugin</artifactId>
116 <version>${avro.version}</version>
117 <configuration>
118 <!-- Generate the output in the same directory as the sbt-avro-plugin -->
119 <outputDirectory>${project.basedir}/target/scala-${scala.binary.version}/src_managed/main/compiled_avro</outputDirectory>
120 </configuration>
121 <executions>
122 <execution>
123 <phase>generate-sources</phase>
124 <goals>
125 <goal>idl-protocol</goal>
126 </goals>
127 </execution>
128 </executions>
129 </plugin>
130 <plugin>
131 <groupId>org.apache.maven.plugins</groupId>
132 <artifactId>maven-shade-plugin</artifactId>
133 <configuration>
134 <!-- Disable all relocations defined in the parent pom. -->
135 <relocations combine.self="override" />
136 </configuration>
137 </plugin>
138 </plugins>
139 </build>
140 </project>