<?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.datakernel</groupId>
        <artifactId>datakernel</artifactId>
        <version>2.5.12</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <artifactId>datakernel-cube</artifactId>

    <name>DataKernel: OLAP Cube</name>
    <description>
        Multidimensional OLAP database with predefined set of dimensions, measures,
        and log-structured merge-tree tables containing pre-aggregated data.
    </description>

    <dependencies>
        <dependency>
            <groupId>io.datakernel</groupId>
            <artifactId>datakernel-aggregation</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.datakernel</groupId>
            <artifactId>datakernel-http</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.datakernel</groupId>
            <artifactId>datakernel-common</artifactId>
            <version>${project.version}</version>
        </dependency>

        <dependency>
            <groupId>io.datakernel</groupId>
            <artifactId>datakernel-test</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
			<version>5.1.36</version>
			<optional>true</optional>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <profiles>
        <profile>
            <id>excludeCubeIntegrationTest</id>
            <activation>
                <property>
                    <name>!excludeCubeIntegrationTest</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <version>2.21.0</version>
                        <configuration>
                            <excludes>
                                <exclude>**/ReportingTest.java</exclude>
                                <exclude>**/CubeIntegrationTest.java</exclude>
                                <exclude>**/CubeMeasureRemovalTest.java</exclude>
                                <exclude>**/CubePartitioningTest.java</exclude>
                            </excludes>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

</project>
