blob: b57388f4bed1913e1a95ac2249fcd4f4e41e3c5d [file] [log] [blame]
<?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>
<parent>
<groupId>org.apache.beam</groupId>
<artifactId>beam-runners-parent</artifactId>
<version>0.3.0-incubating</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>beam-runners-google-cloud-dataflow-java</artifactId>
<name>Apache Beam :: Runners :: Google Cloud Dataflow</name>
<packaging>jar</packaging>
<properties>
<timestamp>${maven.build.timestamp}</timestamp>
<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
</properties>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<beamTestPipelineOptions />
<beamUseDummyRunner>true</beamUseDummyRunner>
</systemPropertyVariables>
</configuration>
<executions>
<execution>
<id>runnable-on-service-tests</id>
<configuration>
<excludes>
<exclude>org.apache.beam.sdk.transforms.FlattenTest</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
<!-- Run CheckStyle pass on transforms, as they are release in
source form. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
</plugin>
<!-- Source plugin for generating source and test-source JARs. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<windowtitle>Google Cloud Dataflow Java Runner ${project.version}</windowtitle>
<doctitle>Google Cloud Dataflow Runner for Java, version ${project.version}</doctitle>
<subpackages>org.apache.beam.runners.dataflow</subpackages>
<additionalparam>-exclude org.apache.beam.sdk.runners.dataflow.internal:org.apache.beam.sdk.runners.dataflow.testing:org.apache.beam.sdk.runners.dataflow.util ${beam.javadoc_opts}</additionalparam>
<use>false</use>
<quiet>true</quiet>
<bottom><![CDATA[<br>]]></bottom>
<offlineLinks>
<offlineLink>
<url>https://developers.google.com/api-client-library/java/google-api-java-client/reference/1.20.0/</url>
<location>${basedir}/../../sdks/java/javadoc/apiclient-docs</location>
</offlineLink>
<offlineLink>
<url>http://avro.apache.org/docs/${avro.version}/api/java/</url>
<location>${basedir}/../../sdks/java/javadoc/avro-docs</location>
</offlineLink>
<offlineLink>
<url>https://developers.google.com/resources/api-libraries/documentation/bigquery/v2/java/latest/</url>
<location>${basedir}/../../sdks/java/javadoc/bq-docs</location>
</offlineLink>
<offlineLink>
<url>https://cloud.google.com/datastore/docs/apis/javadoc/</url>
<location>${basedir}/../../sdks/java/javadoc/datastore-docs</location>
</offlineLink>
<offlineLink>
<url>http://docs.guava-libraries.googlecode.com/git-history/release19/javadoc/</url>
<location>${basedir}/../../sdks/java/javadoc/guava-docs</location>
</offlineLink>
<offlineLink>
<url>http://hamcrest.org/JavaHamcrest/javadoc/1.3/</url>
<location>${basedir}/../../sdks/java/javadoc/hamcrest-docs</location>
</offlineLink>
<offlineLink>
<url>http://fasterxml.github.io/jackson-annotations/javadoc/2.7/</url>
<location>${basedir}/../../sdks/java/javadoc/jackson-annotations-docs</location>
</offlineLink>
<offlineLink>
<url>http://fasterxml.github.io/jackson-databind/javadoc/2.7/</url>
<location>${basedir}/../../sdks/java/javadoc/jackson-databind-docs</location>
</offlineLink>
<offlineLink>
<url>http://www.joda.org/joda-time/apidocs</url>
<location>${basedir}/../../sdks/java/javadoc/joda-docs</location>
</offlineLink>
<offlineLink>
<url>http://junit.sourceforge.net/javadoc/</url>
<location>${basedir}/../../sdks/java/javadoc/junit-docs</location>
</offlineLink>
<offlineLink>
<url>https://developers.google.com/api-client-library/java/google-oauth-java-client/reference/1.20.0/</url>
<location>${basedir}/../../sdks/java/javadoc/oauth-docs</location>
</offlineLink>
</offlineLinks>
</configuration>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<!-- In the first phase, we pick dependencies and relocate them. -->
<execution>
<id>bundle-and-repackage</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>true</shadeTestJar>
<artifactSet>
<includes>
<include>com.google.cloud.bigtable:bigtable-client-core</include>
<include>com.google.guava:guava</include>
</includes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<relocations>
<!-- TODO: Once ready, change the following pattern to 'com'
only, exclude 'org.apache.beam.**', and remove
the second relocation. -->
<relocation>
<pattern>com.google.common</pattern>
<excludes>
<!-- com.google.common is too generic, need to exclude guava-testlib -->
<exclude>com.google.common.**.testing.*</exclude>
</excludes>
<shadedPattern>org.apache.beam.sdk.repackaged.com.google.common</shadedPattern>
</relocation>
<relocation>
<pattern>com.google.thirdparty</pattern>
<shadedPattern>org.apache.beam.sdk.repackaged.com.google.thirdparty</shadedPattern>
</relocation>
<relocation>
<pattern>com.google.cloud.bigtable</pattern>
<shadedPattern>org.apache.beam.sdk.repackaged.com.google.cloud.bigtable</shadedPattern>
<excludes>
<exclude>com.google.cloud.bigtable.config.BigtableOptions*</exclude>
<exclude>com.google.cloud.bigtable.config.CredentialOptions*</exclude>
<exclude>com.google.cloud.bigtable.config.RetryOptions*</exclude>
<exclude>com.google.cloud.bigtable.grpc.BigtableClusterName</exclude>
<exclude>com.google.cloud.bigtable.grpc.BigtableTableName</exclude>
</excludes>
</relocation>
</relocations>
</configuration>
</execution>
<!-- In the second phase, we pick remaining dependencies and bundle
them without repackaging. -->
<execution>
<id>bundle-rest-without-repackaging</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>true</shadeTestJar>
<finalName>${project.artifactId}-bundled-${project.version}</finalName>
<artifactSet>
<excludes>
<exclude>com.google.cloud.bigtable:bigtable-client-core</exclude>
<exclude>com.google.guava:guava</exclude>
</excludes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
<!-- Coverage analysis for unit tests. -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.beam</groupId>
<artifactId>beam-sdks-java-core</artifactId>
</dependency>
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client</artifactId>
</dependency>
<dependency>
<groupId>com.google.oauth-client</groupId>
<artifactId>google-oauth-client</artifactId>
</dependency>
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client</artifactId>
</dependency>
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client-jackson2</artifactId>
</dependency>
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client-protobuf</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-dataflow</artifactId>
</dependency>
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-clouddebugger</artifactId>
</dependency>
<dependency>
<groupId>com.google.cloud.bigdataoss</groupId>
<artifactId>util</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<!-- Note: when relocating guava, ensure guava-testlib is not also relocated by
excluding com.google.common.**.testing.* -->
<groupId>com.google.guava</groupId>
<artifactId>guava-testlib</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-lite</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<!-- build dependencies -->
<dependency>
<groupId>com.google.auto.service</groupId>
<artifactId>auto-service</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.google.auto.value</groupId>
<artifactId>auto-value</artifactId>
<scope>provided</scope>
</dependency>
<!-- test dependencies -->
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.beam</groupId>
<artifactId>beam-sdks-java-core</artifactId>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.cloud.dataflow</groupId>
<artifactId>google-cloud-dataflow-java-proto-library-all</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.cloud.datastore</groupId>
<artifactId>datastore-v1-protos</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>