<?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>
    <groupId>com.xiaomi.infra.galaxy</groupId>
    <artifactId>galaxy-talos-client</artifactId>
    <packaging>pom</packaging>
    <version>2.6.1.4</version>

    <name>Galaxy Talos SDK</name>
    <description>Xiaomi Galaxy Talos Service SDK</description>
    <url>http://dev.xiaomi.com/doc/?page_id=2095</url>

    <!--When publishing to maven central repository, using this parent.-->
    <parent>
      <groupId>org.sonatype.oss</groupId>
      <artifactId>oss-parent</artifactId>
      <version>7</version>
    </parent>

    <scm>
      <url>https://github.com/XiaoMi/galaxy-sdk-java.git</url>
    </scm>

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

    <developers>
      <developer>
        <name>Infra-dev</name>
        <email>talos-help@xiaomi.com</email>
        <organization>Xiaomi</organization>
        <organizationUrl>http://www.mi.com</organizationUrl>
      </developer>
    </developers>

    <modules>
        <module>galaxy-talos-sdk</module>
<!--        <module>galaxy-talos-shell</module>-->
<!--        <module>galaxy-talos-example</module>-->
        <!-- <module>galaxy-talos-spark</module>    -->
        <!-- <module>galaxy-talos-storm</module>    --> 
        <!-- <module>galaxy-talos-mapreduce</module>-->
        <!--<module>galaxy-talos-wrapper-0.8.1.1</module>-->
        <!--<module>galaxy-talos-wrapper-0.10.2.2</module>-->
    </modules>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <galaxy-client-java.version>1.2.5</galaxy-client-java.version>
        <galaxy-thrift-api.version>1.2.8</galaxy-thrift-api.version>
        <galaxy-lcs-common.version>2.1.13</galaxy-lcs-common.version>
        <snappy.version>1.1.1.6</snappy.version>
        <zstd.version>1.5.0-4</zstd.version>
        <lz4.version>1.8.0</lz4.version>
        <httpcomponents.version>4.2.2</httpcomponents.version>
        <galaxy-talos-sdk.version>2.4.8</galaxy-talos-sdk.version>
        <galaxy-talos-server.version>2.4.12-hotfix</galaxy-talos-server.version>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.0</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <fork>true</fork>
                    <verbose>true</verbose>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.4</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>2.3</version>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <phase>package</phase>
                        <goals>
                            <goal>jar-no-fork</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>2.8</version>
                <executions>
                    <execution>
                        <id>default-deploy</id>
                        <phase>deploy</phase>
                        <goals>
                            <goal>deploy</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.16</version>
            </plugin>
            <!--release to maven remote central repositories-->
            <!-- Javadoc -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.9.1</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                        <configuration>
                            <additionalparam>-Xdoclint:none</additionalparam>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <!-- GPG -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-gpg-plugin</artifactId>
                <version>1.5</version>
                <executions>
                    <execution>
                        <phase>verify</phase>
                        <goals>
                            <goal>sign</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    <profiles>
      <profile>
        <id>publishing</id>
        <build>
          <plugins>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-gpg-plugin</artifactId>
              <executions>
                <execution>
                  <id>sign-artifacts</id>
                  <phase>verify</phase>
                  <goals>
                    <goal>sign</goal>
                  </goals>
                </execution>
              </executions>
            </plugin>
            <plugin>
              <groupId>org.sonatype.plugins</groupId>
              <artifactId>nexus-staging-maven-plugin</artifactId>
              <version>1.5.1</version>
              <extensions>true</extensions>
              <configuration>
                <serverId>sonatype-nexus-staging</serverId>
                <nexusUrl>https://oss.sonatype.org</nexusUrl>
              </configuration>
            </plugin>
          </plugins>
        </build>
      </profile>
      <!--When publishing to maven central repository, delete this distributionManagement. -->
<!--      <profile>-->
<!--        <id>nexus</id>-->
<!--        <distributionManagement>-->
<!--          <repository>-->
<!--            <id>archiva.internal</id>-->
<!--            <name>Internal Release Repository</name>-->
<!--            <url>-->
<!--              http://nexus.d.xiaomi.net/nexus/content/repositories/releases/-->
<!--            </url>-->
<!--          </repository>-->
<!--          <snapshotRepository>-->
<!--            <id>archiva.snapshots</id>-->
<!--            <name>Internal Snapshot Repository</name>-->
<!--            <url>-->
<!--              http://nexus.d.xiaomi.net/nexus/content/repositories/snapshots/-->
<!--            </url>-->
<!--          </snapshotRepository>-->
<!--        </distributionManagement>-->
<!--      </profile>-->
<!--      <profile>-->
<!--        <id>default</id>-->
<!--        <activation>-->
<!--          <activeByDefault>true</activeByDefault>-->
<!--        </activation>-->
<!--        <distributionManagement>-->
<!--          <repository>-->
<!--            <id>central</id>-->
<!--            <name>maven-release-virtual</name>-->
<!--            <url>-->
<!--              https://pkgs.d.xiaomi.net/artifactory/maven-release-virtual-->
<!--            </url>-->
<!--          </repository>-->
<!--          <snapshotRepository>-->
<!--            <id>snapshots</id>-->
<!--            <name>maven-snapshot-virtual</name>-->
<!--            <url>-->
<!--              https://pkgs.d.xiaomi.net/artifactory/maven-snapshot-virtual-->
<!--            </url>-->
<!--          </snapshotRepository>-->
<!--        </distributionManagement>-->
<!--      </profile>-->
    </profiles>
</project>
