Preparing Spark release v2.2.1-rc1
[spark.git] / external / kinesis-asl-assembly / 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-kinesis-asl-assembly_2.11</artifactId>
29 <packaging>jar</packaging>
30 <name>Spark Project Kinesis Assembly</name>
31 <url>http://spark.apache.org/</url>
32
33 <properties>
34 <sbt.project.name>streaming-kinesis-asl-assembly</sbt.project.name>
35 </properties>
36
37 <dependencies>
38 <dependency>
39 <groupId>org.apache.spark</groupId>
40 <artifactId>spark-streaming-kinesis-asl_${scala.binary.version}</artifactId>
41 <version>${project.version}</version>
42 </dependency>
43 <dependency>
44 <groupId>org.apache.spark</groupId>
45 <artifactId>spark-streaming_${scala.binary.version}</artifactId>
46 <version>${project.version}</version>
47 <scope>provided</scope>
48 </dependency>
49 <!--
50 Demote already included in the Spark assembly.
51 -->
52 <dependency>
53 <groupId>com.fasterxml.jackson.core</groupId>
54 <artifactId>jackson-databind</artifactId>
55 <scope>provided</scope>
56 </dependency>
57 <dependency>
58 <groupId>commons-lang</groupId>
59 <artifactId>commons-lang</artifactId>
60 <scope>provided</scope>
61 </dependency>
62 <dependency>
63 <groupId>com.google.protobuf</groupId>
64 <artifactId>protobuf-java</artifactId>
65 <version>2.6.1</version>
66 <!--
67 We are being explicit about version here and overriding the
68 spark default of 2.5.0 because KCL appears to have introduced
69 a dependency on protobuf 2.6.1 somewhere between KCL 1.4.0 and 1.6.1.
70 -->
71 </dependency>
72 <dependency>
73 <groupId>org.glassfish.jersey.core</groupId>
74 <artifactId>jersey-client</artifactId>
75 <scope>provided</scope>
76 </dependency>
77 <dependency>
78 <groupId>org.glassfish.jersey.core</groupId>
79 <artifactId>jersey-common</artifactId>
80 <scope>provided</scope>
81 </dependency>
82 <dependency>
83 <groupId>org.glassfish.jersey.core</groupId>
84 <artifactId>jersey-server</artifactId>
85 <scope>provided</scope>
86 </dependency>
87 <dependency>
88 <groupId>log4j</groupId>
89 <artifactId>log4j</artifactId>
90 <scope>provided</scope>
91 </dependency>
92 <dependency>
93 <groupId>net.java.dev.jets3t</groupId>
94 <artifactId>jets3t</artifactId>
95 <scope>provided</scope>
96 </dependency>
97 <dependency>
98 <groupId>org.apache.hadoop</groupId>
99 <artifactId>hadoop-client</artifactId>
100 <scope>provided</scope>
101 </dependency>
102 <dependency>
103 <groupId>org.apache.avro</groupId>
104 <artifactId>avro-ipc</artifactId>
105 <scope>provided</scope>
106 </dependency>
107 <dependency>
108 <groupId>org.apache.avro</groupId>
109 <artifactId>avro-mapred</artifactId>
110 <classifier>${avro.mapred.classifier}</classifier>
111 <scope>provided</scope>
112 </dependency>
113 <dependency>
114 <groupId>org.apache.curator</groupId>
115 <artifactId>curator-recipes</artifactId>
116 <scope>provided</scope>
117 </dependency>
118 <dependency>
119 <groupId>org.apache.zookeeper</groupId>
120 <artifactId>zookeeper</artifactId>
121 <scope>provided</scope>
122 </dependency>
123 <dependency>
124 <groupId>org.slf4j</groupId>
125 <artifactId>slf4j-api</artifactId>
126 <scope>provided</scope>
127 </dependency>
128 <dependency>
129 <groupId>org.slf4j</groupId>
130 <artifactId>slf4j-log4j12</artifactId>
131 <scope>provided</scope>
132 </dependency>
133 <dependency>
134 <groupId>org.xerial.snappy</groupId>
135 <artifactId>snappy-java</artifactId>
136 <scope>provided</scope>
137 </dependency>
138 </dependencies>
139
140 <build>
141 <outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory>
142 <testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory>
143 <plugins>
144 <!-- SPARK-17418: prevent the kinesis-asl-assembly from being published to Maven -->
145 <plugin>
146 <groupId>org.apache.maven.plugins</groupId>
147 <artifactId>maven-deploy-plugin</artifactId>
148 <configuration>
149 <skip>true</skip>
150 </configuration>
151 </plugin>
152 <plugin>
153 <groupId>org.apache.maven.plugins</groupId>
154 <artifactId>maven-install-plugin</artifactId>
155 <configuration>
156 <skip>true</skip>
157 </configuration>
158 </plugin>
159 <plugin>
160 <groupId>org.apache.maven.plugins</groupId>
161 <artifactId>maven-shade-plugin</artifactId>
162 <configuration>
163 <shadedArtifactAttached>false</shadedArtifactAttached>
164 <artifactSet>
165 <includes>
166 <include>*:*</include>
167 </includes>
168 </artifactSet>
169 <relocations>
170 <relocation>
171 <pattern>com.google.protobuf</pattern>
172 <shadedPattern>kinesis.protobuf</shadedPattern>
173 <includes>
174 <include>com.google.protobuf.**</include>
175 </includes>
176 </relocation>
177 </relocations>
178 <filters>
179 <filter>
180 <artifact>*:*</artifact>
181 <excludes>
182 <exclude>META-INF/*.SF</exclude>
183 <exclude>META-INF/*.DSA</exclude>
184 <exclude>META-INF/*.RSA</exclude>
185 </excludes>
186 </filter>
187 </filters>
188 </configuration>
189 <executions>
190 <execution>
191 <phase>package</phase>
192 <goals>
193 <goal>shade</goal>
194 </goals>
195 <configuration>
196 <transformers>
197 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
198 <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
199 <resource>reference.conf</resource>
200 </transformer>
201 <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
202 <resource>log4j.properties</resource>
203 </transformer>
204 <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer"/>
205 <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer"/>
206 </transformers>
207 </configuration>
208 </execution>
209 </executions>
210 </plugin>
211 </plugins>
212 </build>
213 </project>
214