<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
    <groupId>io.hetu.core</groupId>
    <artifactId>presto-root</artifactId>
    <version>1.9.0</version>
</parent>

<artifactId>hetu-mpp</artifactId>
<description>hetu - Mpp Connector</description>
<packaging>hetu-plugin</packaging>

<properties>
    <air.main.basedir>${project.parent.basedir}</air.main.basedir>
</properties>

<dependencies>
    <dependency>
        <groupId>io.hetu.core</groupId>
        <artifactId>presto-hive</artifactId>
    </dependency>

    <dependency>
        <groupId>io.airlift</groupId>
        <artifactId>json</artifactId>
    </dependency>

    <dependency>
        <groupId>io.airlift</groupId>
        <artifactId>configuration</artifactId>
    </dependency>

    <dependency>
        <groupId>io.airlift</groupId>
        <artifactId>bootstrap</artifactId>
    </dependency>

    <dependency>
        <groupId>org.weakref</groupId>
        <artifactId>jmxutils</artifactId>
    </dependency>

    <dependency>
        <groupId>io.airlift</groupId>
        <artifactId>event</artifactId>
    </dependency>

    <dependency>
        <groupId>io.hetu.core</groupId>
        <artifactId>presto-plugin-toolkit</artifactId>
    </dependency>

    <dependency>
        <groupId>io.airlift</groupId>
        <artifactId>log</artifactId>
    </dependency>

    <dependency>
        <groupId>io.hetu.core</groupId>
        <artifactId>presto-orc</artifactId>
    </dependency>

    <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
    </dependency>

    <dependency>
        <groupId>com.google.inject</groupId>
        <artifactId>guice</artifactId>
    </dependency>

    <dependency>
        <groupId>javax.inject</groupId>
        <artifactId>javax.inject</artifactId>
    </dependency>

    <dependency>
        <groupId>com.google.code.findbugs</groupId>
        <artifactId>jsr305</artifactId>
        <optional>true</optional>
    </dependency>

    <dependency>
        <groupId>io.airlift</groupId>
        <artifactId>concurrent</artifactId>
    </dependency>

    <dependency>
        <groupId>io.airlift</groupId>
        <artifactId>stats</artifactId>
    </dependency>

    <!-- Presto SPI -->
    <dependency>
        <groupId>io.hetu.core</groupId>
        <artifactId>presto-spi</artifactId>
        <scope>provided</scope>
    </dependency>

    <dependency>
        <groupId>io.airlift</groupId>
        <artifactId>slice</artifactId>
        <scope>provided</scope>
    </dependency>

    <dependency>
        <groupId>io.airlift</groupId>
        <artifactId>units</artifactId>
        <scope>provided</scope>
    </dependency>

    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-annotations</artifactId>
        <scope>provided</scope>
    </dependency>

    <dependency>
        <groupId>org.openjdk.jol</groupId>
        <artifactId>jol-core</artifactId>
        <scope>provided</scope>
    </dependency>

    <dependency>
        <groupId>net.jodah</groupId>
        <artifactId>expiringmap</artifactId>
        <version>0.5.9</version>
    </dependency>

    <dependency>
        <groupId>io.prestosql.hadoop</groupId>
        <artifactId>hadoop-apache</artifactId>
        <scope>runtime</scope>
    </dependency>

    <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <scope>runtime</scope>
    </dependency>

    <!-- for testing -->
    <dependency>
        <groupId>org.testng</groupId>
        <artifactId>testng</artifactId>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>io.airlift</groupId>
        <artifactId>testing</artifactId>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>org.assertj</groupId>
        <artifactId>assertj-core</artifactId>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>io.hetu.core</groupId>
        <artifactId>presto-hive</artifactId>
        <type>test-jar</type>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>io.prestosql.hive</groupId>
        <artifactId>hive-apache</artifactId>
    </dependency>

    <dependency>
        <groupId>io.hetu.core</groupId>
        <artifactId>presto-main</artifactId>
        <scope>test</scope>
    </dependency>
</dependencies>

<profiles>
    <profile>
        <id>default</id>
        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>
        <build>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <configuration>
                        <excludes>
                            <exclude>**/TestHive.java</exclude>
                            <exclude>**/TestHiveFileSystemS3.java</exclude>
                            <exclude>**/TestHiveFileSystemS3SelectPushdown.java</exclude>
                        </excludes>
                    </configuration>
                </plugin>
            </plugins>
        </build>
    </profile>
    <profile>
        <id>test-mpp</id>
        <build>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <configuration>
                        <includes>
                            <include>**/TestHive.java</include>
                        </includes>
                    </configuration>
                </plugin>
            </plugins>
        </build>
    </profile>
    <profile>
        <id>test-mpp-s3</id>
        <build>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <configuration>
                        <includes>
                            <include>**/TestHiveFileSystemS3.java</include>
                            <include>**/TestHiveFileSystemS3SelectPushdown.java</include>
                        </includes>
                    </configuration>
                </plugin>
            </plugins>
        </build>
    </profile>
</profiles>
</project>