<?xml version="1.0" encoding="UTF-8"?>
<project>
    <modelVersion>4.0.0</modelVersion>

    <groupId>org.trustedanalytics</groupId>
    <artifactId>tap-root</artifactId>
    <version>master-SNAPSHOT</version>

    <name>trusted analytics root</name>
    <description>trusted analytics root pom</description>

    <packaging>pom</packaging>

    <licenses>
        <license>
            <name>Apache License Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
        </license>
    </licenses>

    <organization>
        <name>TrustedAnalytics</name>
        <url>http://trustedanalytics.org</url>
    </organization>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <tap.parent.version>0.8.0</tap.parent.version>

        <tap.cdh.version>cdh5.7.1</tap.cdh.version>

        <!--Spark-->
        <tap.spark.long.version>2.0.2</tap.spark.long.version>
        <tap.spark.version>${tap.spark.long.version}</tap.spark.version>
        <tap.spark.yarn.version>${tap.spark.long.version}</tap.spark.yarn.version>
        <tap.spark.hive.version>${tap.spark.long.version}</tap.spark.hive.version>

        <!--scala -->
        <tap.scala.long.version>2.11.8</tap.scala.long.version>
        <tap.scala.short.version>2.11</tap.scala.short.version>
        <tap.scalatest.version>2.2.6</tap.scalatest.version>

        <!--Orient db-->
        <tap.orientdb.version>2.1.16</tap.orientdb.version>

        <!--daal-->
        <tap.daal.version>2016.2.181</tap.daal.version>

        <tap.mahout.version>0.9-${tap.cdh.version}</tap.mahout.version>
        <tap.parquet.version>1.7.0</tap.parquet.version>
        <tap.hbase.version>1.2.0-${tap.cdh.version}</tap.hbase.version>
        <tap.hadoop2.version>2.7.3</tap.hadoop2.version>
        <tap.zookeeper.version>3.4.6</tap.zookeeper.version>
        <tap.typesafe-config.version>1.2.1</tap.typesafe-config.version>
        <tap.hive.version>1.2.1</tap.hive.version>

        <tap.maven.version>3.1.1</tap.maven.version>
        <tap.java.version>1.8</tap.java.version>

        <tap.commons-lang3.version>3.3.2</tap.commons-lang3.version>

        <!--graphframes https://github.com/graphframes/graphframes-->
        <tap.graphframes.version>0.3.0-spark2.0-s_2.11</tap.graphframes.version>
    </properties>
    <distributionManagement>
        <repository>
            <id>tap</id>
            <url>https://tap.jfrog.io/tap/public</url>
        </repository>
        <snapshotRepository>
            <id>tap-snapshots</id>
            <url>https://tap.jfrog.io/tap/public-snapshots</url>
        </snapshotRepository>
    </distributionManagement>

    <repositories>
        <repository>
            <id>central</id>
            <url>http://repo1.maven.org/maven2</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>tap</id>
            <url>https://tap.jfrog.io/tap/public</url>
            <snapshots>
                <enabled>false</enabled>
                <updatePolicy>daily</updatePolicy>
            </snapshots>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
        <repository>
            <id>tap-snapshots</id>
            <url>https://tap.jfrog.io/tap/public-snapshots</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
        </repository>
        <repository>
            <id>cloudera-cdh</id>
            <url>https://repository.cloudera.com/cloudera/cloudera-repos/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>apache</id>
            <url>https://repository.apache.org/content/groups/public/</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
        <repository>
            <id>sonatype</id>
            <url>https://oss.sonatype.org/content/groups/public/</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
        <repository>
            <id>SparkPackagesRepo</id>
            <url>http://dl.bintray.com/spark-packages/maven</url>
        </repository>
    </repositories>

   
    <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>properties-maven-plugin</artifactId>
        <version>1.0.0</version>
        <executions>
          <execution>
            <phase>generate-resources</phase>
            <goals>
              <goal>write-project-properties</goal>
            </goals>
            <configuration>
              <outputFile>target/app.properties
              </outputFile>
            </configuration>
          </execution>
          </executions>
      </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-enforcer-plugin</artifactId>
            <version>1.4.1</version>
            <executions>
                <execution>
                    <id>enforce-maven</id>
                    <goals>
                        <goal>enforce</goal>
                    </goals>
                    <configuration>
                        <rules>
                            <requireMavenVersion>
                                <version>${tap.maven.version}</version>
                            </requireMavenVersion>
                            <requireJavaVersion>
                                <version>${tap.java.version}</version>
                            </requireJavaVersion>
                        </rules>
                    </configuration>
                </execution>
            </executions>
        </plugin>
        <!--
        Use this in your project to configure the license plugin.
        You will also have to copy the license-header.txt
         <plugin>
            <groupId>com.mycila</groupId>
            <artifactId>license-maven-plugin</artifactId>
            <configuration>
                <header>license-header.txt</header>
            </configuration>
        </plugin>
        -->
        <plugin>
            <groupId>com.mycila</groupId>
            <artifactId>license-maven-plugin</artifactId>
            <version>2.3</version>
            <configuration>
                <header>license-header.txt</header>
                <properties>
                    <owner>Intel Corporation</owner>
                    <currentYear>2016</currentYear>
                </properties>
                <excludes>
                    <exclude>**/README</exclude>
                    <exclude>**/src/test/resources/**</exclude>
                    <exclude>**/src/main/resources/**</exclude>
                    <exclude>**/findbugs-exclude.xml</exclude>
                    <exclude>**/scalastyle-config.xml</exclude>
                    <exclude>**/checkstyle.xml</exclude>
                    <exclude>**/pom.xml</exclude>
                    <exclude>**/*.txt</exclude>
                    <exclude>**/*.csv</exclude>
                    <exclude>**/*.rst</exclude>
                    <exclude>**/*.tpl</exclude>
                    <exclude>**/*.inc</exclude>
                    <exclude>**/*.conf</exclude>
                    <exclude>**/*.sql</exclude>
                    <exclude>**/*.pyc</exclude>
                    <exclude>**/*pom.xml</exclude>
                </excludes>
            </configuration>
            <executions>
                <execution>
                    <goals>
                        <goal>check</goal>
                        <goal>format</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>
    </project>