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-examples_2.12</artifactId>
0029   <packaging>jar</packaging>
0030   <name>Spark Project Examples</name>
0031   <url>http://spark.apache.org/</url>
0032 
0033   <properties>
0034     <sbt.project.name>examples</sbt.project.name>
0035     <build.testJarPhase>none</build.testJarPhase>
0036     <build.copyDependenciesPhase>package</build.copyDependenciesPhase>
0037     <hadoop.deps.scope>provided</hadoop.deps.scope>
0038     <hive.deps.scope>provided</hive.deps.scope>
0039     <parquet.deps.scope>provided</parquet.deps.scope>
0040   </properties>
0041 
0042   <dependencies>
0043     <!-- Prevent our dummy JAR from being included in Spark distributions or uploaded to YARN -->
0044     <dependency>
0045       <groupId>org.spark-project.spark</groupId>
0046       <artifactId>unused</artifactId>
0047       <version>1.0.0</version>
0048       <scope>provided</scope>
0049     </dependency>
0050     <dependency>
0051       <groupId>org.apache.spark</groupId>
0052       <artifactId>spark-core_${scala.binary.version}</artifactId>
0053       <version>${project.version}</version>
0054       <scope>provided</scope>
0055     </dependency>
0056     <dependency>
0057       <groupId>org.apache.spark</groupId>
0058       <artifactId>spark-streaming_${scala.binary.version}</artifactId>
0059       <version>${project.version}</version>
0060       <scope>provided</scope>
0061     </dependency>
0062     <dependency>
0063       <groupId>org.apache.spark</groupId>
0064       <artifactId>spark-mllib_${scala.binary.version}</artifactId>
0065       <version>${project.version}</version>
0066       <scope>provided</scope>
0067     </dependency>
0068     <dependency>
0069       <groupId>org.apache.spark</groupId>
0070       <artifactId>spark-hive_${scala.binary.version}</artifactId>
0071       <version>${project.version}</version>
0072       <scope>provided</scope>
0073     </dependency>
0074     <dependency>
0075       <groupId>org.apache.spark</groupId>
0076       <artifactId>spark-graphx_${scala.binary.version}</artifactId>
0077       <version>${project.version}</version>
0078       <scope>provided</scope>
0079     </dependency>
0080     <dependency>
0081       <groupId>org.apache.spark</groupId>
0082       <artifactId>spark-streaming-kafka-0-10_${scala.binary.version}</artifactId>
0083       <version>${project.version}</version>
0084       <scope>provided</scope>
0085     </dependency>
0086     <dependency>
0087       <groupId>org.apache.spark</groupId>
0088       <artifactId>spark-sql-kafka-0-10_${scala.binary.version}</artifactId>
0089       <version>${project.version}</version>
0090       <scope>provided</scope>
0091     </dependency>
0092     <dependency>
0093       <groupId>org.apache.commons</groupId>
0094       <artifactId>commons-math3</artifactId>
0095       <scope>provided</scope>
0096     </dependency>
0097     <dependency>
0098       <groupId>org.scalacheck</groupId>
0099       <artifactId>scalacheck_${scala.binary.version}</artifactId>
0100       <scope>test</scope>
0101     </dependency>
0102     <dependency>
0103       <groupId>org.scala-lang</groupId>
0104       <artifactId>scala-library</artifactId>
0105       <scope>provided</scope>
0106     </dependency>
0107     <dependency>
0108       <groupId>com.github.scopt</groupId>
0109       <artifactId>scopt_${scala.binary.version}</artifactId>
0110       <version>3.7.1</version>
0111     </dependency>
0112     <dependency>
0113       <groupId>${hive.parquet.group}</groupId>
0114       <artifactId>parquet-hadoop-bundle</artifactId>
0115       <scope>provided</scope>
0116     </dependency>
0117   </dependencies>
0118 
0119   <build>
0120     <outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory>
0121     <testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory>
0122     <plugins>
0123       <plugin>
0124         <groupId>org.apache.maven.plugins</groupId>
0125         <artifactId>maven-deploy-plugin</artifactId>
0126         <configuration>
0127           <skip>true</skip>
0128         </configuration>
0129       </plugin>
0130       <plugin>
0131         <groupId>org.apache.maven.plugins</groupId>
0132         <artifactId>maven-install-plugin</artifactId>
0133         <configuration>
0134           <skip>true</skip>
0135         </configuration>
0136       </plugin>
0137       <plugin>
0138         <groupId>org.apache.maven.plugins</groupId>
0139         <artifactId>maven-jar-plugin</artifactId>
0140         <configuration>
0141           <outputDirectory>${jars.target.dir}</outputDirectory>
0142         </configuration>
0143       </plugin>
0144     </plugins>
0145   </build>
0146   <profiles>
0147     <profile>
0148       <id>kinesis-asl</id>
0149       <dependencies>
0150         <dependency>
0151           <groupId>org.apache.spark</groupId>
0152           <artifactId>spark-streaming-kinesis-asl_${scala.binary.version}</artifactId>
0153           <version>${project.version}</version>
0154           <scope>provided</scope>
0155         </dependency>
0156       </dependencies>
0157     </profile>
0158   </profiles>
0159 </project>