| <?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>org.apache.samza</groupId> |
| <artifactId>samza-beam-examples</artifactId> |
| <version>0.1</version> |
| |
| <packaging>jar</packaging> |
| |
| <properties> |
| <beam.version>2.9.0</beam.version> |
| <samza.version>0.14.1</samza.version> |
| |
| <guava.version>20.0</guava.version> |
| <hamcrest.version>1.3</hamcrest.version> |
| <jackson.version>2.9.5</jackson.version> |
| <joda.version>2.4</joda.version> |
| <junit.version>4.12</junit.version> |
| <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version> |
| <maven-exec-plugin.version>1.6.0</maven-exec-plugin.version> |
| <maven-jar-plugin.version>3.0.2</maven-jar-plugin.version> |
| <mockito.version>1.10.19</mockito.version> |
| <slf4j.version>1.7.25</slf4j.version> |
| <hadoop.version>2.7.3</hadoop.version> |
| <maven-surefire-plugin.version>2.21.0</maven-surefire-plugin.version> |
| </properties> |
| |
| <repositories> |
| <repository> |
| <id>apache.snapshots</id> |
| <name>Apache Development Snapshot Repository</name> |
| <url>https://repository.apache.org/content/repositories/snapshots/</url> |
| <releases> |
| <enabled>false</enabled> |
| </releases> |
| <snapshots> |
| <enabled>true</enabled> |
| </snapshots> |
| </repository> |
| </repositories> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>${maven-compiler-plugin.version}</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>${maven-surefire-plugin.version}</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>${maven-surefire-plugin.version}</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| |
| <!-- Ensure that the Maven jar plugin runs before the Maven |
| shade plugin by listing the plugin higher within the file. --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>${maven-jar-plugin.version}</version> |
| </plugin> |
| |
| <!-- plugin to build the tar.gz file filled with examples --> |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>2.3</version> |
| <configuration> |
| <descriptors> |
| <descriptor>src/main/assembly/samza.xml</descriptor> |
| </descriptors> |
| </configuration> |
| <executions> |
| <execution> |
| <id>make-assembly</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>${maven-exec-plugin.version}</version> |
| <configuration> |
| <cleanupDaemonThreads>false</cleanupDaemonThreads> |
| </configuration> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>samza-runner</id> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.beam</groupId> |
| <artifactId>beam-runners-samza</artifactId> |
| <version>${beam.version}</version> |
| <scope>runtime</scope> |
| </dependency> |
| </dependencies> |
| </profile> |
| </profiles> |
| |
| <dependencies> |
| <!-- Adds a dependency on the Beam SDK. --> |
| <dependency> |
| <groupId>org.apache.beam</groupId> |
| <artifactId>beam-sdks-java-core</artifactId> |
| <version>${beam.version}</version> |
| </dependency> |
| |
| <!-- Adds a dependency on the Beam Google Cloud Platform IO module. --> |
| <dependency> |
| <groupId>org.apache.beam</groupId> |
| <artifactId>beam-sdks-java-io-kafka</artifactId> |
| <version>${beam.version}</version> |
| <exclusions> |
| <exclusion> <!-- exclude kafka-clients --> |
| <groupId>org.apache.kafka</groupId> |
| <artifactId>kafka-clients</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.beam</groupId> |
| <artifactId>beam-runners-samza</artifactId> |
| <version>${beam.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.samza</groupId> |
| <artifactId>samza-shell</artifactId> |
| <classifier>dist</classifier> |
| <type>tgz</type> |
| <version>${samza.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.samza</groupId> |
| <artifactId>samza-log4j</artifactId> |
| <version>${samza.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.samza</groupId> |
| <artifactId>samza-yarn_2.11</artifactId> |
| <version>${samza.version}</version> |
| </dependency> |
| |
| <!-- Dependencies below this line are specific dependencies needed by the examples code. --> |
| <dependency> |
| <groupId>joda-time</groupId> |
| <artifactId>joda-time</artifactId> |
| <version>${joda.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| <version>${guava.version}</version> |
| </dependency> |
| |
| <!-- Add slf4j API frontend binding with JUL backend --> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <version>${slf4j.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-jdk14</artifactId> |
| <version>${slf4j.version}</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-core</artifactId> |
| <version>${hamcrest.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest-library</artifactId> |
| <version>${hamcrest.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>${junit.version}</version> |
| </dependency> |
| |
| <!-- The DirectRunner is needed for unit tests. --> |
| <dependency> |
| <groupId>org.apache.beam</groupId> |
| <artifactId>beam-runners-direct-java</artifactId> |
| <version>${beam.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <version>${mockito.version}</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| </project> |