<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
-->
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-statistics-parent</artifactId>
    <version>1.3</version>
  </parent>

  <artifactId>commons-statistics</artifactId>
  <packaging>pom</packaging>
  <name>Apache Commons Statistics (full distribution)</name>
  <description>This module creates the Apache Commons Statistics distribution.</description>

  <properties>
    <!-- Reproducible builds -->
    <project.build.outputTimestamp>${statistics.build.outputTimestamp}</project.build.outputTimestamp>

    <checkstyle.skip>true</checkstyle.skip>
    <animal.sniffer.skip>true</animal.sniffer.skip>
    <!-- Commons Release Plugin -->
    <commons.release.isDistModule>true</commons.release.isDistModule>
    <commons.siteOutputDirectory>${basedir}/../target/site</commons.siteOutputDirectory>
    <commons.releaseNotesLocation>${basedir}/../RELEASE-NOTES.txt</commons.releaseNotesLocation>
    <commons.distSvnStagingUrl>scm:svn:https://dist.apache.org/repos/dist/dev/commons/${commons.componentid}</commons.distSvnStagingUrl>
  </properties>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-deploy-plugin</artifactId>
        <configuration>
          <skip>true</skip>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <profiles>

    <profile>
      <id>release</id>
      <dependencies>

        <!-- Module: Descriptive -->
        <dependency>
          <groupId>org.apache.commons</groupId>
          <artifactId>commons-statistics-descriptive</artifactId>
          <version>1.3</version>
        </dependency>
        <dependency>
          <groupId>org.apache.commons</groupId>
          <artifactId>commons-statistics-descriptive</artifactId>
          <version>1.3</version>
          <classifier>sources</classifier>
        </dependency>
        <dependency>
          <groupId>org.apache.commons</groupId>
          <artifactId>commons-statistics-descriptive</artifactId>
          <version>1.3</version>
          <classifier>javadoc</classifier>
        </dependency>

        <!-- Module: Distribution -->
        <dependency>
          <groupId>org.apache.commons</groupId>
          <artifactId>commons-statistics-distribution</artifactId>
          <version>1.3</version>
        </dependency>
        <dependency>
          <groupId>org.apache.commons</groupId>
          <artifactId>commons-statistics-distribution</artifactId>
          <version>1.3</version>
          <classifier>sources</classifier>
        </dependency>
        <dependency>
          <groupId>org.apache.commons</groupId>
          <artifactId>commons-statistics-distribution</artifactId>
          <version>1.3</version>
          <classifier>javadoc</classifier>
        </dependency>

        <!-- Module: Inference -->
        <dependency>
          <groupId>org.apache.commons</groupId>
          <artifactId>commons-statistics-inference</artifactId>
          <version>1.3</version>
        </dependency>
        <dependency>
          <groupId>org.apache.commons</groupId>
          <artifactId>commons-statistics-inference</artifactId>
          <version>1.3</version>
          <classifier>sources</classifier>
        </dependency>
        <dependency>
          <groupId>org.apache.commons</groupId>
          <artifactId>commons-statistics-inference</artifactId>
          <version>1.3</version>
          <classifier>javadoc</classifier>
        </dependency>

        <!-- Module: Interval -->
        <dependency>
          <groupId>org.apache.commons</groupId>
          <artifactId>commons-statistics-interval</artifactId>
          <version>1.3</version>
        </dependency>
        <dependency>
          <groupId>org.apache.commons</groupId>
          <artifactId>commons-statistics-interval</artifactId>
          <version>1.3</version>
          <classifier>sources</classifier>
        </dependency>
        <dependency>
          <groupId>org.apache.commons</groupId>
          <artifactId>commons-statistics-interval</artifactId>
          <version>1.3</version>
          <classifier>javadoc</classifier>
        </dependency>

        <!-- Module: Ranking -->
        <dependency>
          <groupId>org.apache.commons</groupId>
          <artifactId>commons-statistics-ranking</artifactId>
          <version>1.3</version>
        </dependency>
        <dependency>
          <groupId>org.apache.commons</groupId>
          <artifactId>commons-statistics-ranking</artifactId>
          <version>1.3</version>
          <classifier>sources</classifier>
        </dependency>
        <dependency>
          <groupId>org.apache.commons</groupId>
          <artifactId>commons-statistics-ranking</artifactId>
          <version>1.3</version>
          <classifier>javadoc</classifier>
        </dependency>

      </dependencies>

      <build>
        <plugins>
          <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <configuration>
              <skipAssembly>false</skipAssembly>
            </configuration>
            <executions>
              <execution>
                <id>create-distribution</id>
                <phase>package</phase>
                <goals>
                  <goal>single</goal>
                </goals>
                <configuration>
                  <skipAssembly>false</skipAssembly>
                  <descriptors>
                    <descriptor>src/assembly/bin.xml</descriptor>
                    <descriptor>src/assembly/src.xml</descriptor>
                  </descriptors>
                  <tarLongFileMode>gnu</tarLongFileMode>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

  </profiles>

</project>
