<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>
    <artifactId>deploy</artifactId>
    <groupId>eu.dicode-project</groupId>
    <version>0.0.11</version>
  </parent>
  <artifactId>deploy-analysis</artifactId>
  <packaging>jar</packaging>
  <name>DICODE Backend Analytics Tarball</name>
  <properties>
    <house.keeping.base>${basedir}/../..</house.keeping.base>
  </properties>
  <dependencies>
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>integration</artifactId>
      <version>${project.version}</version>
      <exclusions>
        <exclusion>
          <groupId>${hadoop.groupId}</groupId>
          <artifactId>hadoop-core</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>deploy-analysis-job</artifactId>
      <version>${project.version}</version>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>copy</id>
            <phase>prepare-package</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <artifactId>deploy-analysis-job</artifactId>
                  <groupId>${project.groupId}</groupId>
                  <version>${project.version}</version>
                  <type>jar</type>
                  <classifier>mapred</classifier>
                  <overWrite>true</overWrite>
                  <outputDirectory>${project.build.directory}/jobarchive/</outputDirectory>
                  <destFileName>jobs.jar</destFileName>
                </artifactItem>
              </artifactItems>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
