| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| 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/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <groupId>${groupId}</groupId> |
| <artifactId>${artifactId}</artifactId> |
| <version>${version}</version> |
| |
| <packaging>jar</packaging> |
| |
| <properties> |
| <beam.version>0.4.0-incubating</beam.version> |
| </properties> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>3.5.1</version> |
| <configuration> |
| <source>1.8</source> |
| <target>1.8</target> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.19.1</version> |
| <configuration> |
| <parallel>all</parallel> |
| <threadCount>4</threadCount> |
| <redirectTestOutputToFile>true</redirectTestOutputToFile> |
| </configuration> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.maven.surefire</groupId> |
| <artifactId>surefire-junit47</artifactId> |
| <version>2.19.1</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| </plugins> |
| |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>1.4.0</version> |
| <configuration> |
| <cleanupDaemonThreads>false</cleanupDaemonThreads> |
| </configuration> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>direct-runner</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| <!-- Makes the DirectRunner available when running a pipeline. --> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.beam</groupId> |
| <artifactId>beam-runners-direct-java</artifactId> |
| <version>${beam.version}</version> |
| <scope>runtime</scope> |
| </dependency> |
| </dependencies> |
| </profile> |
| |
| <profile> |
| <id>apex-runner</id> |
| <!-- Makes the ApexRunner available when running a pipeline. --> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.beam</groupId> |
| <artifactId>beam-runners-apex</artifactId> |
| <version>${beam.version}</version> |
| <scope>runtime</scope> |
| </dependency> |
| </dependencies> |
| </profile> |
| |
| <profile> |
| <id>dataflow-runner</id> |
| <!-- Makes the DataflowRunner available when running a pipeline. --> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.beam</groupId> |
| <artifactId>beam-runners-google-cloud-dataflow-java</artifactId> |
| <version>${beam.version}</version> |
| <scope>runtime</scope> |
| </dependency> |
| </dependencies> |
| </profile> |
| |
| <profile> |
| <id>flink-runner</id> |
| <!-- Makes the FlinkRunner available when running a pipeline. --> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.beam</groupId> |
| <artifactId>beam-runners-flink_2.10</artifactId> |
| <version>${beam.version}</version> |
| <scope>runtime</scope> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| <profile> |
| <id>spark-runner</id> |
| <!-- Makes the SparkRunner available when running a pipeline. Additionally, |
| overrides some Spark dependencies to Beam-compatible versions. --> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.beam</groupId> |
| <artifactId>beam-runners-spark</artifactId> |
| <version>${beam.version}</version> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.spark</groupId> |
| <artifactId>spark-streaming_2.10</artifactId> |
| <version>1.6.2</version> |
| <scope>runtime</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>jul-to-slf4j</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.module</groupId> |
| <artifactId>jackson-module-scala_2.10</artifactId> |
| <version>2.7.2</version> |
| <scope>runtime</scope> |
| </dependency> |
| </dependencies> |
| </profile> |
| </profiles> |
| |
| <dependencies> |
| <!-- Adds a dependency on a specific version of the Beam SDK. --> |
| <dependency> |
| <groupId>org.apache.beam</groupId> |
| <artifactId>beam-sdks-java-core</artifactId> |
| <version>${beam.version}</version> |
| </dependency> |
| |
| <!-- Adds a dependency on a specific version of the Beam Google Cloud Platform IO module. --> |
| <dependency> |
| <groupId>org.apache.beam</groupId> |
| <artifactId>beam-sdks-java-io-google-cloud-platform</artifactId> |
| <version>${beam.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.api-client</groupId> |
| <artifactId>google-api-client</artifactId> |
| <version>1.22.0</version> |
| <exclusions> |
| <!-- Exclude an old version of guava that is being pulled |
| in by a transitive dependency of google-api-client --> |
| <exclusion> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava-jdk5</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- Dependencies below this line are specific dependencies needed by the examples code. --> |
| <dependency> |
| <groupId>com.google.apis</groupId> |
| <artifactId>google-api-services-bigquery</artifactId> |
| <version>v2-rev295-1.22.0</version> |
| <exclusions> |
| <!-- Exclude an old version of guava that is being pulled |
| in by a transitive dependency of google-api-client --> |
| <exclusion> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava-jdk5</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.http-client</groupId> |
| <artifactId>google-http-client</artifactId> |
| <version>1.22.0</version> |
| <exclusions> |
| <!-- Exclude an old version of guava that is being pulled |
| in by a transitive dependency of google-api-client --> |
| <exclusion> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava-jdk5</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.apis</groupId> |
| <artifactId>google-api-services-pubsub</artifactId> |
| <version>v1-rev10-1.22.0</version> |
| <exclusions> |
| <!-- Exclude an old version of guava that is being pulled |
| in by a transitive dependency of google-api-client --> |
| <exclusion> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava-jdk5</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>joda-time</groupId> |
| <artifactId>joda-time</artifactId> |
| <version>2.4</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| <version>19.0</version> |
| </dependency> |
| |
| <!-- Add slf4j API frontend binding with JUL backend --> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <version>1.7.14</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-jdk14</artifactId> |
| <version>1.7.14</version> |
| <!-- When loaded at runtime this will wire up slf4j to the JUL backend --> |
| <scope>runtime</scope> |
| </dependency> |
| |
| <!-- Hamcrest and JUnit are required dependencies of PAssert, |
| which is used in the main code of DebuggingWordCount example. --> |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest-all</artifactId> |
| <version>1.3</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.11</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-all</artifactId> |
| <version>1.9.5</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| </project> |