| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <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/maven-v4_0_0.xsd"> |
| |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.crunch</groupId> |
| <artifactId>crunch-parent</artifactId> |
| <version>0.13.0-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>crunch-spark</artifactId> |
| <name>Apache Crunch for Spark</name> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.scala-lang</groupId> |
| <artifactId>scala-library</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| <version>14.0.1</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.crunch</groupId> |
| <artifactId>crunch-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.crunch</groupId> |
| <artifactId>crunch-scrunch</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-client</artifactId> |
| <scope>provided</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-server</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.spark</groupId> |
| <artifactId>spark-core_${scala.base.version}</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.google.protobuf</groupId> |
| <artifactId>protobuf-java</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.crunch</groupId> |
| <artifactId>crunch-test</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.scalatest</groupId> |
| <artifactId>scalatest_${scala.base.version}</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest-all</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>net.alchim31.maven</groupId> |
| <artifactId>scala-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>compile</goal> |
| <goal>testCompile</goal> |
| </goals> |
| <configuration> |
| <args> |
| <arg>-deprecation</arg> |
| <arg>-dependencyfile</arg> |
| <arg>${project.build.directory}/.scala_dependencies</arg> |
| </args> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <useFile>false</useFile> |
| <disableXmlReport>true</disableXmlReport> |
| <includes> |
| <include>${project.build.testSourceDirectory}/**/*Test.*</include> |
| <include>${project.build.testSourceDirectory}/**/*Suite.*</include> |
| </includes> |
| </configuration> |
| </plugin> |
| <!-- We put slow-running tests into src/it and run them during the |
| integration-test phase using the failsafe plugin. This way |
| developers can run unit tests conveniently from the IDE or via |
| "mvn package" from the command line without triggering time |
| consuming integration tests. --> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>add-test-source</id> |
| <phase>validate</phase> |
| <goals> |
| <goal>add-test-source</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>${basedir}/src/it/java</source> |
| <source>${basedir}/src/it/scala</source> |
| </sources> |
| </configuration> |
| </execution> |
| <execution> |
| <id>add-test-resource</id> |
| <phase>validate</phase> |
| <goals> |
| <goal>add-test-resource</goal> |
| </goals> |
| <configuration> |
| <resources> |
| <resource> |
| <directory>${basedir}/src/it/resources</directory> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <configuration> |
| <testSourceDirectory>${basedir}/src/it/scala</testSourceDirectory> |
| <useFile>false</useFile> |
| <disableXmlReport>true</disableXmlReport> |
| <includes> |
| <include>**/*Test.*</include> |
| <include>**/*Suite.*</include> |
| </includes> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>integration-test</goal> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |