<?xml version="1.0"?>
<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">
    <parent>
        <groupId>org.locationtech.geomesa</groupId>
        <artifactId>geomesa-archetypes-binary-dist_2.12</artifactId>
        <relativePath>../../geomesa-archetypes/geomesa-archetypes-binary-dist/pom.xml</relativePath>
        <version>3.2.2</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <packaging>pom</packaging>

    <artifactId>geomesa-gt-dist_2.12</artifactId>
    <name>GeoMesa GeoTools Distribution</name>

    <properties>
        <tools.module>gt</tools.module>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <tools.dist.name>GEOMESA_GEOTOOLS</tools.dist.name>
        <tools.runner>org.locationtech.geomesa.geotools.tools.GeoToolsRunner</tools.runner>
    </properties>

    <dependencies>

        <!-- Spark (dist)-->
        <dependency>
            <groupId>org.locationtech.geomesa</groupId>
            <artifactId>geomesa-gt-spark-runtime_${scala.binary.version}</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.locationtech.geomesa</groupId>
            <artifactId>geomesa-spark-converter_${scala.binary.version}</artifactId>
        </dependency>

        <!-- Tools (bin,lib,etc)-->
        <dependency>
            <groupId>org.locationtech.geomesa</groupId>
            <artifactId>geomesa-gt-tools_${scala.binary.version}</artifactId>
        </dependency>
    </dependencies>

    <profiles>
        <profile>
            <id>python</id>
            <dependencies>
                <dependency>
                    <groupId>org.locationtech.geomesa</groupId>
                    <artifactId>geomesa_pyspark</artifactId>
                    <version>${project.version}</version>
                    <type>tar.gz</type>
                </dependency>
            </dependencies>
        </profile>
    </profiles>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

</project>
