Back to home page

OSCL-LXR

 
 

    


0001 <?xml version="1.0" encoding="UTF-8"?>
0002 <!--
0003   ~ Licensed to the Apache Software Foundation (ASF) under one or more
0004   ~ contributor license agreements.  See the NOTICE file distributed with
0005   ~ this work for additional information regarding copyright ownership.
0006   ~ The ASF licenses this file to You under the Apache License, Version 2.0
0007   ~ (the "License"); you may not use this file except in compliance with
0008   ~ the License.  You may obtain a copy of the License at
0009   ~
0010   ~    http://www.apache.org/licenses/LICENSE-2.0
0011   ~
0012   ~ Unless required by applicable law or agreed to in writing, software
0013   ~ distributed under the License is distributed on an "AS IS" BASIS,
0014   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0015   ~ See the License for the specific language governing permissions and
0016   ~ limitations under the License.
0017   -->
0018 
0019 <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">
0020   <modelVersion>4.0.0</modelVersion>
0021   <parent>
0022     <groupId>org.apache.spark</groupId>
0023     <artifactId>spark-parent_2.12</artifactId>
0024     <version>3.0.0</version>
0025     <relativePath>../../pom.xml</relativePath>
0026   </parent>
0027 
0028   <artifactId>spark-streaming-kafka-0-10-assembly_2.12</artifactId>
0029   <packaging>jar</packaging>
0030   <name>Spark Integration for Kafka 0.10 Assembly</name>
0031   <url>http://spark.apache.org/</url>
0032 
0033   <properties>
0034     <sbt.project.name>streaming-kafka-0-10-assembly</sbt.project.name>
0035   </properties>
0036 
0037   <dependencies>
0038     <dependency>
0039       <groupId>org.apache.spark</groupId>
0040       <artifactId>spark-streaming-kafka-0-10_${scala.binary.version}</artifactId>
0041       <version>${project.version}</version>
0042     </dependency>
0043     <dependency>
0044       <groupId>org.apache.spark</groupId>
0045       <artifactId>spark-streaming_${scala.binary.version}</artifactId>
0046       <version>${project.version}</version>
0047       <scope>provided</scope>
0048     </dependency>
0049     <!--
0050       Demote already included in the Spark assembly.
0051     -->
0052     <dependency>
0053       <groupId>commons-codec</groupId>
0054       <artifactId>commons-codec</artifactId>
0055       <scope>provided</scope>
0056     </dependency>
0057     <dependency>
0058       <groupId>commons-lang</groupId>
0059       <artifactId>commons-lang</artifactId>
0060       <scope>provided</scope>
0061     </dependency>
0062     <dependency>
0063       <groupId>com.google.protobuf</groupId>
0064       <artifactId>protobuf-java</artifactId>
0065       <scope>provided</scope>
0066     </dependency>
0067     <dependency>
0068       <groupId>org.lz4</groupId>
0069       <artifactId>lz4-java</artifactId>
0070       <scope>provided</scope>
0071     </dependency>
0072     <dependency>
0073       <groupId>org.apache.hadoop</groupId>
0074       <artifactId>hadoop-client</artifactId>
0075       <scope>provided</scope>
0076     </dependency>
0077     <dependency>
0078       <groupId>org.apache.avro</groupId>
0079       <artifactId>avro-mapred</artifactId>
0080       <classifier>${avro.mapred.classifier}</classifier>
0081       <scope>provided</scope>
0082     </dependency>
0083     <dependency>
0084       <groupId>org.apache.curator</groupId>
0085       <artifactId>curator-recipes</artifactId>
0086       <scope>provided</scope>
0087     </dependency>
0088     <dependency>
0089       <groupId>org.apache.zookeeper</groupId>
0090       <artifactId>zookeeper</artifactId>
0091       <scope>provided</scope>
0092     </dependency>
0093     <dependency>
0094       <groupId>log4j</groupId>
0095       <artifactId>log4j</artifactId>
0096       <scope>provided</scope>
0097     </dependency>
0098     <dependency>
0099       <groupId>org.scala-lang</groupId>
0100       <artifactId>scala-library</artifactId>
0101       <scope>provided</scope>
0102     </dependency>
0103     <dependency>
0104       <groupId>org.slf4j</groupId>
0105       <artifactId>slf4j-api</artifactId>
0106       <scope>provided</scope>
0107     </dependency>
0108     <dependency>
0109       <groupId>org.slf4j</groupId>
0110       <artifactId>slf4j-log4j12</artifactId>
0111       <scope>provided</scope>
0112     </dependency>
0113     <dependency>
0114       <groupId>org.xerial.snappy</groupId>
0115       <artifactId>snappy-java</artifactId>
0116       <scope>provided</scope>
0117     </dependency>
0118   </dependencies>
0119 
0120   <build>
0121   <outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory>
0122   <testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory>
0123   <plugins>
0124     <plugin>
0125       <groupId>org.apache.maven.plugins</groupId>
0126       <artifactId>maven-shade-plugin</artifactId>
0127       <configuration>
0128         <shadedArtifactAttached>false</shadedArtifactAttached>
0129         <artifactSet>
0130           <includes>
0131             <include>*:*</include>
0132           </includes>
0133         </artifactSet>
0134         <filters>
0135           <filter>
0136             <artifact>*:*</artifact>
0137             <excludes>
0138               <exclude>META-INF/*.SF</exclude>
0139               <exclude>META-INF/*.DSA</exclude>
0140               <exclude>META-INF/*.RSA</exclude>
0141             </excludes>
0142           </filter>
0143         </filters>
0144       </configuration>
0145       <executions>
0146         <execution>
0147           <phase>package</phase>
0148           <goals>
0149             <goal>shade</goal>
0150           </goals>
0151           <configuration>
0152             <transformers>
0153               <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
0154               <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
0155                 <resource>reference.conf</resource>
0156               </transformer>
0157               <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
0158                 <resource>log4j.properties</resource>
0159               </transformer>
0160               <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer"/>
0161               <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer"/>
0162             </transformers>
0163           </configuration>
0164         </execution>
0165       </executions>
0166     </plugin>
0167   </plugins>
0168 </build>
0169 </project>
0170