Skip to content

Commit

Permalink
[FLINK-6247] [table] Put flink-table.jar with all dependencies into .…
Browse files Browse the repository at this point in the history
…/opt folder.

This closes apache#3666.
  • Loading branch information
sunjincheng121 authored and fhueske committed Apr 27, 2017
1 parent fff04bf commit 69905e1
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 2 deletions.
9 changes: 9 additions & 0 deletions flink-connectors/flink-connector-kafka-0.10/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ under the License.
</exclusions>
</dependency>

<!-- streaming-java dependencies -->

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-java_2.10</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>

<!-- Add Kafka 0.10.x as a dependency -->

<dependency>
Expand Down
22 changes: 22 additions & 0 deletions flink-connectors/flink-hbase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,34 @@ under the License.
<scope>provided</scope>
</dependency>

<!-- flink-java dependencies -->

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-java</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>

<!-- flink-scala dependencies -->

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-scala_2.10</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>

<!-- streaming-scala dependencies -->

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-scala_2.10</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>

<!-- table dependencies -->

<dependency>
<groupId>org.apache.flink</groupId>
Expand All @@ -93,6 +114,7 @@ under the License.
won't depend on flink-table. -->
<optional>true</optional>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-hadoop2</artifactId>
Expand Down
7 changes: 7 additions & 0 deletions flink-dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,13 @@ under the License.
<version>${project.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table_2.10</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<!-- end optional Flink libraries -->
</dependencies>

Expand Down
8 changes: 8 additions & 0 deletions flink-dist/src/main/assemblies/opt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@
<fileMode>0644</fileMode>
</file>

<!-- TableAPI-->
<file>
<source>../flink-libraries/flink-table/target/flink-table_2.10-${project.version}.jar</source>
<outputDirectory>opt/</outputDirectory>
<destName>flink-table_2.10-${project.version}.jar</destName>
<fileMode>0644</fileMode>
</file>

<!-- ML -->
<file>
<source>../flink-libraries/flink-ml/target/flink-ml_2.10-${project.version}-jar-with-dependencies.jar</source>
Expand Down
9 changes: 9 additions & 0 deletions flink-examples/flink-examples-table/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,19 @@ under the License.
<packaging>jar</packaging>

<dependencies>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table_2.10</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-scala_2.10</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>

Expand Down
10 changes: 8 additions & 2 deletions flink-libraries/flink-table/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ under the License.
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-scala_2.10</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
Expand Down Expand Up @@ -195,20 +196,25 @@ under the License.
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>org-apache-calcite-jdbc.properties</exclude>
<exclude>org-apache-calcite-jdbc.properties</exclude>
<exclude>mozilla/**</exclude>
<exclude>codegen/**</exclude>
<exclude>google/**</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filter>
</filters>
<artifactSet>
<includes combine.children="append">
<include>org.apache.calcite:*</include>
<include>org.apache.calcite.avatica:*</include>
<include>net.hydromatic:*</include>
<include>org.reflections:*</include>
<include>org.codehaus.janino:*</include>
</includes>
</artifactSet>
<relocations>
Expand Down

0 comments on commit 69905e1

Please sign in to comment.