blob: 676d0e83d1996659e97efabd0622c8a39c6df637 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<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>eu.stratosphere</groupId>
<artifactId>stratosphere</artifactId>
<version>0.4</version>
<relativePath>..</relativePath>
</parent>
<artifactId>stratosphere-dist</artifactId>
<name>stratosphere-dist</name>
<packaging>pom</packaging>
<dependencies>
<!-- BINARIES -->
<dependency>
<groupId>eu.stratosphere</groupId>
<artifactId>stratosphere-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>eu.stratosphere</groupId>
<artifactId>stratosphere-java</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>eu.stratosphere</groupId>
<artifactId>stratosphere-scala</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>eu.stratosphere</groupId>
<artifactId>stratosphere-runtime</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>eu.stratosphere</groupId>
<artifactId>stratosphere-compiler</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>eu.stratosphere</groupId>
<artifactId>stratosphere-clients</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>eu.stratosphere</groupId>
<artifactId>stratosphere-java-examples</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>eu.stratosphere</groupId>
<artifactId>stratosphere-scala-examples</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>eu.stratosphere</groupId>
<artifactId>swt-visualization</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>eu.stratosphere</groupId>
<artifactId>yarn</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>single-jar</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<archive>
<manifest>
<mainClass>eu.stratosphere.yarn.Client</mainClass>
</manifest>
</archive>
<descriptors>
<descriptor>src/main/assemblies/yarn-uberjar.xml</descriptor>
</descriptors>
</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>eu.stratosphere</groupId>
<artifactId>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/stratosphere-${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/stratosphere-${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/stratosphere-${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/stratosphere-${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/stratosphere-${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/stratosphere-${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>
</profiles>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>generate-package</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/main/assemblies/bin.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.4</version>
<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>
<skipPoms>false</skipPoms>
<generateGitPropertiesFilename>src/main/stratosphere-bin/.version.properties</generateGitPropertiesFilename>
<gitDescribe>
<skip>true</skip>
</gitDescribe>
</configuration>
</plugin>
</plugins>
</build>
</project>