|
| 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</artifactId> |
| 24 | + <version>1.3.0-SNAPSHOT</version> |
| 25 | + <relativePath>../../pom.xml</relativePath> |
| 26 | + </parent> |
| 27 | + |
| 28 | + <groupId>org.apache.spark</groupId> |
| 29 | + <artifactId>spark-streaming-kafka-assembly_2.10</artifactId> |
| 30 | + <packaging>jar</packaging> |
| 31 | + <name>Spark Project External Kafka Assembly</name> |
| 32 | + <url>http://spark.apache.org/</url> |
| 33 | + |
| 34 | + <properties> |
| 35 | + <sbt.project.name>streaming-kafka-assembly</sbt.project.name> |
| 36 | + <spark.jar.dir>scala-${scala.binary.version}</spark.jar.dir> |
| 37 | + <spark.jar.basename>spark-streaming-kafka-assembly-${project.version}.jar</spark.jar.basename> |
| 38 | + <spark.jar>${project.build.directory}/${spark.jar.dir}/${spark.jar.basename}</spark.jar> |
| 39 | + </properties> |
| 40 | + |
| 41 | + <dependencies> |
| 42 | + <dependency> |
| 43 | + <groupId>org.apache.spark</groupId> |
| 44 | + <artifactId>spark-streaming-kafka_${scala.binary.version}</artifactId> |
| 45 | + <version>${project.version}</version> |
| 46 | + </dependency> |
| 47 | + <dependency> |
| 48 | + <groupId>org.apache.spark</groupId> |
| 49 | + <artifactId>spark-streaming_${scala.binary.version}</artifactId> |
| 50 | + <version>${project.version}</version> |
| 51 | + <scope>provided</scope> |
| 52 | + </dependency> |
| 53 | + </dependencies> |
| 54 | + |
| 55 | + <build> |
| 56 | + <outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory> |
| 57 | + <testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory> |
| 58 | + <plugins> |
| 59 | + <plugin> |
| 60 | + <groupId>org.apache.maven.plugins</groupId> |
| 61 | + <artifactId>maven-shade-plugin</artifactId> |
| 62 | + <configuration> |
| 63 | + <shadedArtifactAttached>false</shadedArtifactAttached> |
| 64 | + <outputFile>${spark.jar}</outputFile> |
| 65 | + <artifactSet> |
| 66 | + <includes> |
| 67 | + <include>*:*</include> |
| 68 | + </includes> |
| 69 | + </artifactSet> |
| 70 | + <filters> |
| 71 | + <filter> |
| 72 | + <artifact>*:*</artifact> |
| 73 | + <excludes> |
| 74 | + <exclude>META-INF/*.SF</exclude> |
| 75 | + <exclude>META-INF/*.DSA</exclude> |
| 76 | + <exclude>META-INF/*.RSA</exclude> |
| 77 | + </excludes> |
| 78 | + </filter> |
| 79 | + </filters> |
| 80 | + </configuration> |
| 81 | + <executions> |
| 82 | + <execution> |
| 83 | + <phase>package</phase> |
| 84 | + <goals> |
| 85 | + <goal>shade</goal> |
| 86 | + </goals> |
| 87 | + <configuration> |
| 88 | + <transformers> |
| 89 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
| 90 | + <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| 91 | + <resource>reference.conf</resource> |
| 92 | + </transformer> |
| 93 | + <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer"> |
| 94 | + <resource>log4j.properties</resource> |
| 95 | + </transformer> |
| 96 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer"/> |
| 97 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer"/> |
| 98 | + </transformers> |
| 99 | + </configuration> |
| 100 | + </execution> |
| 101 | + </executions> |
| 102 | + </plugin> |
| 103 | + </plugins> |
| 104 | +</build> |
| 105 | +</project> |
| 106 | + |
0 commit comments