<?xml version="1.0"?>
<!--
   Licensed to the Hipparchus project under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The Hipparchus project 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 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.hipparchus</groupId>
    <artifactId>hipparchus</artifactId>
    <version>1.8</version>
    <relativePath>../hipparchus-parent</relativePath>
  </parent>

  <artifactId>hipparchus-stat</artifactId>
  <packaging>jar</packaging>
  <name>Hipparchus::Statistics</name>
  <description>The Hipparchus statistics module</description>

  <scm>
    <!-- override the value from the parent pom with the *same*
         to avoid maven adding the module name at the end of the URL -->
    <connection>${project.parent.scm.connection}</connection>
    <developerConnection>${project.parent.scm.developerConnection}</developerConnection>
  </scm>

  <properties>
    <hipparchusParentDir>${basedir}/..</hipparchusParentDir>
  </properties>

  <dependencies>
    <dependency>
      <groupId>org.hipparchus</groupId>
      <artifactId>hipparchus-core</artifactId>
    </dependency>

    <!-- Test dependencies -->

    <dependency>
      <groupId>org.hipparchus</groupId>
      <artifactId>hipparchus-core</artifactId>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-checkstyle-plugin</artifactId>
          <dependencies>
            <!-- dependencies are not inherited from parent pom so we have to repeat them here -->
            <dependency>
              <groupId>com.puppycrawl.tools</groupId>
              <artifactId>checkstyle</artifactId>
              <version>${hipparchus.checkstyle.version}</version>
            </dependency>
          </dependencies>
      </plugin>
    </plugins>
  </build>

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jxr-plugin</artifactId>
        <version>${hipparchus.maven-jxr-plugin.version}</version>
      </plugin>
      <plugin>
        <groupId>com.github.spotbugs</groupId>
        <artifactId>spotbugs-maven-plugin</artifactId>
        <version>${hipparchus.spotbugs-maven-plugin.version}</version>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>${hipparchus.maven-javadoc-plugin.version}</version>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <version>${hipparchus.maven-checkstyle-plugin.version}</version>
        <reportSets>
          <reportSet>
            <reports>
              <report>checkstyle</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-report-plugin</artifactId>
        <version>${hipparchus.maven-surefire-report-plugin.version}</version>
      </plugin>
      <plugin>
        <groupId>org.apache.rat</groupId>
        <artifactId>apache-rat-plugin</artifactId>
        <version>${hipparchus.apache-rat-plugin.version}</version>
        <configuration>
          <excludes>

            <!-- the following are test data files with specific syntax that
              cannot include Hipparchus header (and the contained data is public, it is not
              owned by Hipparchus) -->
            <exclude>src/test/resources/org/hipparchus/stat/data/PiDigits.txt</exclude>
            <exclude>src/test/resources/org/hipparchus/stat/data/NumAcc3.txt</exclude>
            <exclude>src/test/resources/org/hipparchus/stat/data/Lew.txt</exclude>
            <exclude>src/test/resources/org/hipparchus/stat/data/NumAcc2.txt</exclude>
            <exclude>src/test/resources/org/hipparchus/stat/data/NumAcc1.txt</exclude>
            <exclude>src/test/resources/org/hipparchus/stat/data/Lottery.txt</exclude>
            <exclude>src/test/resources/org/hipparchus/stat/data/NumAcc4.txt</exclude>
            <exclude>src/test/resources/org/hipparchus/stat/data/Michelso.txt</exclude>
            <exclude>src/test/resources/org/hipparchus/stat/data/Mavro.txt</exclude>
            <exclude>src/test/resources/org/hipparchus/stat/fitting/testData.txt</exclude>
          </excludes>
        </configuration>
      </plugin>
    </plugins>
  </reporting>

  <profiles>
    <profile>
      <id>release</id>
    </profile>
    <profile>
      <id>eclipse</id>
    </profile>
  </profiles>

</project>
