| <?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/maven-v4_0_0.xsd"> |
| |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-parent</artifactId> |
| <version>0.6-incubating</version> |
| <relativePath>..</relativePath> |
| </parent> |
| |
| <artifactId>flink-dist</artifactId> |
| <name>flink-dist</name> |
| <packaging>pom</packaging> |
| |
| <dependencies> |
| <!-- BINARIES --> |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-core</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-java</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-scala</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-runtime</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-compiler</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-clients</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-spargel</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-avro</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-java-examples</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-scala-examples</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| </dependencies> |
| |
| <!-- See main pom.xml for explanation of profiles --> |
| <profiles> |
| <profile> |
| <id>hadoop-1</id> |
| <activation> |
| <property> |
| <!-- Please do not remove the 'hadoop1' comment. See ./tools/generate_specific_pom.sh --> |
| <!--hadoop1--><name>!hadoop.profile</name> |
| </property> |
| </activation> |
| <dependencies> |
| <!-- No extra dependencies: pact-hbase is currently not compatible with Hadoop v1 --> |
| </dependencies> |
| </profile> |
| |
| <profile> |
| <id>include-yarn</id> |
| <activation> |
| <property> |
| <!-- Please do not remove the 'hadoop1' comment. See ./tools/generate_specific_pom.sh --> |
| <!--hadoop2--><name>hadoop.profile</name><value>2</value> |
| </property> |
| </activation> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-yarn</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>2.4</version> |
| <executions> |
| <!-- Uber-jar --> |
| <execution> |
| <id>uber-jar</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <archiverConfig> |
| <!-- https://jira.codehaus.org/browse/MASSEMBLY-449 --> |
| <fileMode>420</fileMode> <!-- 420(dec) = 644(oct) --> |
| <directoryMode>493</directoryMode> <!-- 493(dec) = 755(oct) --> |
| <defaultDirectoryMode>493</defaultDirectoryMode> |
| </archiverConfig> |
| <archive> |
| <manifest> |
| <mainClass>org.apache.flink.yarn.Client</mainClass> |
| <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> |
| <addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
| </manifest> |
| </archive> |
| <descriptors> |
| <descriptor>src/main/assemblies/yarn-uberjar.xml</descriptor> |
| </descriptors> |
| </configuration> |
| </execution> |
| |
| <!-- yarn bin directory --> |
| <execution> |
| <id>yarn-bin</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <descriptors> |
| <descriptor>src/main/assemblies/yarn.xml</descriptor> |
| </descriptors> |
| <finalName>flink-${project.version}-bin</finalName> |
| <appendAssemblyId>false</appendAssemblyId> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| <profile> |
| <id>hadoop-2</id> |
| <activation> |
| <property> |
| <!-- Please do not remove the 'hadoop1' comment. See ./tools/generate_specific_pom.sh --> |
| <!--hadoop2--><name>hadoop.profile</name><value>2</value> |
| </property> |
| </activation> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.flink</groupId> |
| <artifactId>flink-hbase</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| </dependencies> |
| </profile> |
| |
| <profile> |
| <id>debian-package</id> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>jdeb</artifactId> |
| <groupId>org.vafer</groupId> |
| <version>1.0.1</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>jdeb</goal> |
| </goals> |
| <configuration> |
| <deb>${project.build.directory}/${project.artifactId}_${project.version}.deb</deb> |
| <controlDir>${basedir}/src/deb/control</controlDir> |
| <dataSet> |
| <data> |
| <src>${basedir}/src/deb/bin/jobmanager</src> |
| <type>file</type> |
| <mapper> |
| <type>perm</type> |
| <prefix>/etc/init.d</prefix> |
| <user>root</user> |
| <group>root</group> |
| <filemode>0755</filemode> |
| </mapper> |
| </data> |
| <data> |
| <src>${basedir}/src/deb/bin/taskmanager</src> |
| <type>file</type> |
| <mapper> |
| <type>perm</type> |
| <prefix>/etc/init.d</prefix> |
| <user>root</user> |
| <group>root</group> |
| <filemode>0755</filemode> |
| </mapper> |
| </data> |
| <data> |
| <src>${basedir}/src/deb/bin/webclient</src> |
| <type>file</type> |
| <mapper> |
| <type>perm</type> |
| <prefix>/etc/init.d</prefix> |
| <user>root</user> |
| <group>root</group> |
| <filemode>0755</filemode> |
| </mapper> |
| </data> |
| <data> |
| <src>${project.build.directory}/${project.artifactId}-${project.version}-bin/flink-${project.version}/bin</src> |
| <type>directory</type> |
| <mapper> |
| <type>perm</type> |
| <prefix>/usr/share/${project.artifactId}/bin</prefix> |
| <user>root</user> |
| <group>root</group> |
| <filemode>0755</filemode> |
| </mapper> |
| </data> |
| <data> |
| <src>${project.build.directory}/${project.artifactId}-${project.version}-bin/flink-${project.version}/examples</src> |
| <type>directory</type> |
| <mapper> |
| <type>perm</type> |
| <prefix>/usr/share/${project.artifactId}/examples</prefix> |
| <user>root</user> |
| <group>root</group> |
| </mapper> |
| </data> |
| <data> |
| <src>${project.build.directory}/${project.artifactId}-${project.version}-bin/flink-${project.version}/lib</src> |
| <type>directory</type> |
| <mapper> |
| <type>perm</type> |
| <prefix>/usr/share/${project.artifactId}/lib</prefix> |
| <user>root</user> |
| <group>root</group> |
| </mapper> |
| </data> |
| <data> |
| <src>${project.build.directory}/${project.artifactId}-${project.version}-bin/flink-${project.version}/lib_clients</src> |
| <type>directory</type> |
| <mapper> |
| <type>perm</type> |
| <prefix>/usr/share/${project.artifactId}/lib_clients</prefix> |
| <user>root</user> |
| <group>root</group> |
| </mapper> |
| </data> |
| <data> |
| <src>${project.build.directory}/${project.artifactId}-${project.version}-bin/flink-${project.version}/resources</src> |
| <type>directory</type> |
| <mapper> |
| <type>perm</type> |
| <prefix>/usr/share/${project.artifactId}/resources</prefix> |
| <user>root</user> |
| <group>root</group> |
| </mapper> |
| </data> |
| <data> |
| <src>${project.build.directory}/${project.artifactId}-${project.version}-bin/flink-${project.version}/conf</src> |
| <type>directory</type> |
| <mapper> |
| <type>perm</type> |
| <prefix>/etc/${project.artifactId}/conf</prefix> |
| <user>root</user> |
| <group>root</group> |
| </mapper> |
| </data> |
| <data> |
| <type>template</type> |
| <paths> |
| <path>/var/log/${project.artifactId}</path> |
| </paths> |
| </data> |
| <data> |
| <type>link</type> |
| <linkName>/usr/share/${project.artifactId}/conf</linkName> |
| <linkTarget>/etc/${project.artifactId}/conf</linkTarget> |
| <symlink>true</symlink> |
| </data> |
| <data> |
| <type>link</type> |
| <linkName>/usr/share/${project.artifactId}/log</linkName> |
| <linkTarget>/var/log/${project.artifactId}</linkTarget> |
| <symlink>true</symlink> |
| </data> |
| </dataSet> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>cdh4</id> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-common</artifactId> |
| <version>${hadoop.cdh4.hadoop.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-hdfs</artifactId> |
| <version>${hadoop.cdh4.hadoop.version}</version> |
| </dependency> |
| </dependencies> |
| </profile> |
| </profiles> |
| |
| |
| |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>bin</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <descriptors> |
| <descriptor>src/main/assemblies/bin.xml</descriptor> |
| </descriptors> |
| <finalName>flink-${project.version}-bin</finalName> |
| <appendAssemblyId>false</appendAssemblyId> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-deploy-plugin</artifactId> |
| <version>2.4</version><!--$NO-MVN-MAN-VER$--> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <!-- Description: https://github.com/ktoso/maven-git-commit-id-plugin --> |
| <groupId>pl.project13.maven</groupId> |
| <artifactId>git-commit-id-plugin</artifactId> |
| <version>2.1.5</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>revision</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <dotGitDirectory>${project.basedir}/../.git</dotGitDirectory> |
| <generateGitPropertiesFile>true</generateGitPropertiesFile> |
| <failOnNoGitDirectory>false</failOnNoGitDirectory> |
| <skipPoms>false</skipPoms> |
| <generateGitPropertiesFilename>src/main/flink-bin/.version.properties</generateGitPropertiesFilename> |
| <gitDescribe> |
| <!-- don't generate the describe property --> |
| <skip>true</skip> |
| </gitDescribe> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |