[BAHIR-105] Add distribution module for Flink extensions
Project: http://git-wip-us.apache.org/repos/asf/bahir-flink/repo Commit: http://git-wip-us.apache.org/repos/asf/bahir-flink/commit/573edca6 Tree: http://git-wip-us.apache.org/repos/asf/bahir-flink/tree/573edca6 Diff: http://git-wip-us.apache.org/repos/asf/bahir-flink/diff/573edca6 Branch: refs/heads/master Commit: 573edca6c535d79319ed2163f0e53aa9ea8d3fdb Parents: 8e8371e Author: Luciano Resende <[email protected]> Authored: Thu Apr 6 12:27:13 2017 -0700 Committer: Luciano Resende <[email protected]> Committed: Thu Apr 6 12:27:13 2017 -0700 ---------------------------------------------------------------------- distribution/pom.xml | 99 +++++++++++++++++++++++++++++ distribution/src/main/assembly/src.xml | 50 +++++++++++++++ pom.xml | 7 +- 3 files changed, 153 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bahir-flink/blob/573edca6/distribution/pom.xml ---------------------------------------------------------------------- diff --git a/distribution/pom.xml b/distribution/pom.xml new file mode 100644 index 0000000..e48b67d --- /dev/null +++ b/distribution/pom.xml @@ -0,0 +1,99 @@ +<?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.bahir</groupId> + <artifactId>bahir-flink_parent_2.11</artifactId> + <version>1.0-SNAPSHOT</version> + <relativePath>..</relativePath> + </parent> + + <groupId>org.apache.bahir</groupId> + <artifactId>bahir-flink-assembly_2.11</artifactId> + <packaging>pom</packaging> + <name>Apache Bahir for Flink - Release Distributions</name> + <url>http://bahir.apache.org/</url> + + <dependencies> + <dependency> + <groupId>org.apache.bahir</groupId> + <artifactId>flink-connector-activemq_${scala.binary.version}</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.bahir</groupId> + <artifactId>flink-connector-akka_${scala.binary.version}</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.bahir</groupId> + <artifactId>flink-connector-flume_${scala.binary.version}</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.bahir</groupId> + <artifactId>flink-connector-netty_${scala.binary.version}</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.bahir</groupId> + <artifactId>flink-connector-redis_${scala.binary.version}</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <inherited>false</inherited> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <configuration> + <tarLongFileMode>gnu</tarLongFileMode> + </configuration> + <executions> + <execution> + <id>create-distributions</id> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + <configuration> + <descriptors> + <descriptor>src/main/assembly/src.xml</descriptor> + </descriptors> + <appendAssemblyId>true</appendAssemblyId> + <finalName>apache-bahir-flink-${project.version}</finalName> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> + <inherited>false</inherited> + <groupId>org.scalastyle</groupId> + <artifactId>scalastyle-maven-plugin</artifactId> + <configuration> + <skip>true</skip> + </configuration> + </plugin> + </plugins> + </build> +</project> http://git-wip-us.apache.org/repos/asf/bahir-flink/blob/573edca6/distribution/src/main/assembly/src.xml ---------------------------------------------------------------------- diff --git a/distribution/src/main/assembly/src.xml b/distribution/src/main/assembly/src.xml new file mode 100644 index 0000000..7cfcc73 --- /dev/null +++ b/distribution/src/main/assembly/src.xml @@ -0,0 +1,50 @@ +<!-- + ~ 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. + --> +<assembly> + <id>src</id> + + <formats> + <format>tar.gz</format> + <format>zip</format> + </formats> + + <includeBaseDirectory>true</includeBaseDirectory> + <baseDirectory>apache-bahir-flink-${version}-src</baseDirectory> + + <fileSets> + <fileSet> + <directory>..</directory> + <outputDirectory></outputDirectory> + <excludes> + <exclude>**/.*</exclude> + <exclude>**/.*/**</exclude> + <exclude>**/*.log</exclude> + <exclude>**/*.iml</exclude> + <exclude>**/conf/*.properties</exclude> + <exclude>**/conf/*.xml</exclude> + <exclude>**/dependency-reduced-pom.xml</exclude> + <exclude>**/scratch_space</exclude> + <exclude>**/scratch_space/**/*</exclude> + <exclude>**/target</exclude> + <exclude>**/target/**/*</exclude> + <exclude>**/temp</exclude> + <exclude>**/temp/**/*</exclude> + </excludes> + </fileSet> + </fileSets> + +</assembly> http://git-wip-us.apache.org/repos/asf/bahir-flink/blob/573edca6/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index b8458cb..b8eaf13 100644 --- a/pom.xml +++ b/pom.xml @@ -84,6 +84,7 @@ <!-- General project dependencies version --> <java.version>1.7</java.version> + <scala.version>2.11.8</scala.version> <scala.binary.version>2.11</scala.binary.version> <slf4j.version>1.7.16</slf4j.version> @@ -123,7 +124,7 @@ </snapshots> </pluginRepository> </pluginRepositories> - + <dependencyManagement> <dependencies> @@ -283,7 +284,7 @@ </execution> </executions> </plugin> - + <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> @@ -548,7 +549,7 @@ <id>distribution</id> <modules> - + <module>distribution</module> </modules> </profile>
