1060 lines
37 KiB
XML
1060 lines
37 KiB
XML
<?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 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-parent</artifactId>
|
|
<version>57</version>
|
|
</parent>
|
|
|
|
<artifactId>commons-math-parent</artifactId>
|
|
<version>4.0-SNAPSHOT</version>
|
|
<packaging>pom</packaging>
|
|
<name>Apache Commons Math</name>
|
|
<description>
|
|
The Apache Commons Math project is a library of lightweight mathematics
|
|
and statistics components addressing common practical problems.
|
|
</description>
|
|
<url>http://commons.apache.org/proper/commons-math/</url>
|
|
<inceptionYear>2003</inceptionYear>
|
|
|
|
<properties>
|
|
<!-- Do not change: "math" is the name of the component even if the
|
|
name of the base package evolves with major release numbers
|
|
(see "commons.osgi.symbolicName", below). -->
|
|
<commons.componentid>math</commons.componentid>
|
|
<!-- OSGi -->
|
|
<!-- This value must reflect the current name of the base package. -->
|
|
<commons.osgi.symbolicName>org.apache.commons.math4</commons.osgi.symbolicName>
|
|
<commons.osgi.export>org.apache.commons.math4</commons.osgi.export>
|
|
<!-- The Java Module System Name -->
|
|
<commons.module.name>org.apache.commons.math4</commons.module.name>
|
|
<!-- This flag should only be true in the dist-archive module. -->
|
|
<commons.release.isDistModule>false</commons.release.isDistModule>
|
|
<!-- do not use snapshot suffix here -->
|
|
<commons.release.version>4.0-beta1</commons.release.version>
|
|
<commons.rc.version>RC1</commons.rc.version>
|
|
<commons.release.desc>(requires Java 8+)</commons.release.desc>
|
|
<commons.binary.suffix>-bin</commons.binary.suffix>
|
|
|
|
<commons.jira.id>MATH</commons.jira.id>
|
|
<commons.jira.pid>12310485</commons.jira.pid>
|
|
<commons.encoding>UTF-8</commons.encoding>
|
|
<maven.compiler.source>1.8</maven.compiler.source>
|
|
<maven.compiler.target>1.8</maven.compiler.target>
|
|
<!-- MathJax configuration also includes the prerequisite polyfill.min.js script.
|
|
See the maven-javadoc-plugin plugin. -->
|
|
<math.mathjax.url>https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js</math.mathjax.url>
|
|
<math.commons.numbers.version>1.1</math.commons.numbers.version>
|
|
<math.commons.rng.version>1.5</math.commons.rng.version>
|
|
<math.commons.geometry.version>1.0</math.commons.geometry.version>
|
|
<math.commons.statistics.version>1.0</math.commons.statistics.version>
|
|
<math.commons.math3.version>3.6.1</math.commons.math3.version>
|
|
<!-- Workaround to avoid duplicating config files. -->
|
|
<math.parent.dir>${basedir}</math.parent.dir>
|
|
|
|
<!-- Fix to avoid JXR 3.0.0 forking the lifecycle phase 'compile' during site report
|
|
jxr:aggregate. If compile is forked, the dist-archive build fails when attempting
|
|
to collect the artifacts from other modules. -->
|
|
<commons.jxr.version>2.5</commons.jxr.version>
|
|
|
|
<!-- Increase from commons-parent -->
|
|
<commons.jacoco.methodRatio>1.00</commons.jacoco.methodRatio>
|
|
<!-- Set to true when coverage goals are achieved -->
|
|
<commons.jacoco.haltOnFailure>false</commons.jacoco.haltOnFailure>
|
|
|
|
<commons.site.path>math</commons.site.path>
|
|
<commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-math</commons.scmPubUrl>
|
|
<commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory>
|
|
|
|
<!--
|
|
Override so that "mvn commons:download-page" will generates a web page
|
|
referring to the files created by the "dist-archive" module.
|
|
Temporary workaround?
|
|
-->
|
|
<commons.release.name>commons-math4-${project.version}</commons.release.name>
|
|
<!-- Java8+ requires additional Javadoc qualifier for scripts such as MathJax -->
|
|
<allowscript.javadoc.qualifier>--allow-script-in-comments</allowscript.javadoc.qualifier>
|
|
<!-- Check for all javadoc errors -->
|
|
<doclint.javadoc.qualifier>-Xdoclint:all</doclint.javadoc.qualifier>
|
|
|
|
<!-- Workaround to avoid the SVN site checkout in all modules.
|
|
This flag should be deactivated by child modules. -->
|
|
<perform.site.checkout>true</perform.site.checkout>
|
|
|
|
<!-- Set by modules to create a custom jira report -->
|
|
<math.jira.component />
|
|
</properties>
|
|
|
|
<modules> <!-- Do not change the ordering of the 4 blocks below. -->
|
|
|
|
<!-- 1. Modules that do not depend on "legacy" codes. -->
|
|
<module>commons-math-core</module>
|
|
<module>commons-math-neuralnet</module>
|
|
<module>commons-math-transform</module>
|
|
|
|
<!-- 2. Modularized (but not refactored) legacy functionalities. -->
|
|
<module>commons-math-legacy-exception</module>
|
|
<module>commons-math-legacy-core</module>
|
|
|
|
<!-- 3. Non-modularized legacy functionalities. -->
|
|
<module>commons-math-legacy</module>
|
|
|
|
<!-- 4. Modules that depend on "legacy" codes. -->
|
|
<module>commons-math-docs</module>
|
|
<module>commons-math-examples</module>
|
|
|
|
</modules>
|
|
|
|
<scm>
|
|
<connection>scm:git:http://gitbox.apache.org/repos/asf/commons-math.git</connection>
|
|
<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/commons-math.git</developerConnection>
|
|
<url>https://gitbox.apache.org/repos/asf/commons-math.git</url>
|
|
</scm>
|
|
|
|
<issueManagement>
|
|
<system>jira</system>
|
|
<url>https://issues.apache.org/jira/browse/MATH</url>
|
|
</issueManagement>
|
|
|
|
<ciManagement>
|
|
<system>GitHub</system>
|
|
<url>https://github.com/apache/commons-math/actions</url>
|
|
</ciManagement>
|
|
|
|
<distributionManagement>
|
|
<site>
|
|
<id>apache.website</id>
|
|
<name>Apache Commons Site</name>
|
|
<url>scm:svn:https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-math/</url>
|
|
</site>
|
|
</distributionManagement>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-math4-core</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-math4-legacy-exception</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-math4-legacy-core</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-math3</artifactId>
|
|
<version>${math.commons.math3.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-statistics-distribution</artifactId>
|
|
<version>${math.commons.statistics.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-numbers-bom</artifactId>
|
|
<version>${math.commons.numbers.version}</version>
|
|
<scope>import</scope>
|
|
<type>pom</type>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-rng-bom</artifactId>
|
|
<version>${math.commons.rng.version}</version>
|
|
<scope>import</scope>
|
|
<type>pom</type>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-geometry-euclidean</artifactId>
|
|
<version>${math.commons.geometry.version}</version>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<!-- TODO: Add binary compatibility check when released. -->
|
|
<defaultGoal>clean verify javadoc:javadoc</defaultGoal>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<configuration>
|
|
<compilerArgs>
|
|
<arg>-Xlint:all,-options,-path</arg>
|
|
</compilerArgs>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>src/assembly/src.xml</descriptor>
|
|
<descriptor>src/assembly/bin.xml</descriptor>
|
|
</descriptors>
|
|
<!-- There are a lot of long file names. Suppress the warnings. -->
|
|
<tarLongFileMode>gnu</tarLongFileMode>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-scm-publish-plugin</artifactId>
|
|
<configuration>
|
|
<ignorePathsToDelete>
|
|
<ignorePathToDelete>javadocs</ignorePathToDelete>
|
|
</ignorePathsToDelete>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
<configuration>
|
|
<includeTestSourceDirectory>true</includeTestSourceDirectory>
|
|
<configLocation>${math.parent.dir}/src/main/resources/checkstyle/checkstyle.xml</configLocation>
|
|
<headerLocation>${math.parent.dir}/src/main/resources/checkstyle/license-header.txt</headerLocation>
|
|
<suppressionsLocation>${math.parent.dir}/src/main/resources/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
|
|
<enableRulesSummary>false</enableRulesSummary>
|
|
<!-- Output issues to console. -->
|
|
<consoleOutput>false</consoleOutput>
|
|
<!-- Output the detected violations to the console (for checkstyle:check). -->
|
|
<logViolationsToConsole>true</logViolationsToConsole>
|
|
<failOnViolation>true</failOnViolation>
|
|
<resourceExcludes>NOTICE,LICENSE,**/*.properties</resourceExcludes>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.github.spotbugs</groupId>
|
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
|
<configuration>
|
|
<threshold>Normal</threshold>
|
|
<effort>Default</effort>
|
|
<excludeFilterFile>${math.parent.dir}/src/main/resources/spotbugs/spotbugs-exclude-filter.xml</excludeFilterFile>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-pmd-plugin</artifactId>
|
|
<configuration>
|
|
<printFailingErrors>true</printFailingErrors>
|
|
<!-- TODO: remove this when PMD has been fixed. -->
|
|
<failOnViolation>false</failOnViolation>
|
|
<targetJdk>${maven.compiler.target}</targetJdk>
|
|
<skipEmptyReport>false</skipEmptyReport>
|
|
<analysisCache>true</analysisCache>
|
|
<rulesets>
|
|
<ruleset>${math.parent.dir}/src/main/resources/pmd/pmd-ruleset.xml</ruleset>
|
|
</rulesets>
|
|
<excludeRoots>
|
|
<excludeRoot>target/generated-sources</excludeRoot>
|
|
</excludeRoots>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.rat</groupId>
|
|
<artifactId>apache-rat-plugin</artifactId>
|
|
<!-- Note: commons-parent binds the check goal to the validate phase -->
|
|
<configuration>
|
|
<!--
|
|
Needed for command-line access, e.g mvn apache-rat:rat and mvn apache-rat:check
|
|
Below should agree with config in <reporting> section, so the site
|
|
gets consistent output.
|
|
-->
|
|
<excludes combine.children="append">
|
|
<exclude>src/test/resources/data/**</exclude>
|
|
<exclude>src/site/resources/release-notes/RELEASE-NOTES-*.txt</exclude>
|
|
<exclude>dist-archive/**</exclude>
|
|
<exclude>**/site-content/**</exclude>
|
|
|
|
<!-- MANIFEST files cannot have any comments, so we can't put license header -->
|
|
<exclude>src/test/maxima/special/RealFunctionValidation/MANIFEST.txt</exclude>
|
|
|
|
<!-- the following are test data files with specific syntax that cannot include
|
|
Apache header (and the contained data is public, it is not owned by Apache) -->
|
|
<exclude>src/test/resources/org/apache/commons/math4/legacy/distribution/testData.txt</exclude>
|
|
<exclude>src/test/resources/org/apache/commons/math4/legacy/random/emptyFile.txt</exclude>
|
|
<exclude>src/test/resources/org/apache/commons/math4/legacy/stat/data/PiDigits.txt</exclude>
|
|
<exclude>src/test/resources/org/apache/commons/math4/legacy/stat/data/NumAcc3.txt</exclude>
|
|
<exclude>src/test/resources/org/apache/commons/math4/legacy/stat/data/Lew.txt</exclude>
|
|
<exclude>src/test/resources/org/apache/commons/math4/legacy/stat/data/NumAcc2.txt</exclude>
|
|
<exclude>src/test/resources/org/apache/commons/math4/legacy/stat/data/NumAcc1.txt</exclude>
|
|
<exclude>src/test/resources/org/apache/commons/math4/legacy/stat/data/Lottery.txt</exclude>
|
|
<exclude>src/test/resources/org/apache/commons/math4/legacy/stat/data/NumAcc4.txt</exclude>
|
|
<exclude>src/test/resources/org/apache/commons/math4/legacy/stat/data/Michelso.txt</exclude>
|
|
<exclude>src/test/resources/org/apache/commons/math4/legacy/stat/data/Mavro.txt</exclude>
|
|
|
|
<!-- direction numbers for Sobol generation from Frances Y. Kuo and Stephen Joe,
|
|
available under a BSD-style license (see LICENSE.txt) -->
|
|
<exclude>src/main/resources/assets/org/apache/commons/math4/legacy/random/new-joe-kuo-6.21201</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<!-- NOTE: javadoc config must also be set under <reporting> -->
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<configuration>
|
|
<!-- Java API links configured in commons-parent create redirect warnings on JDK 17.
|
|
The links are not required as detectJavaApiLink=true (default). -->
|
|
<links combine.self="override">
|
|
</links>
|
|
<!-- Enable MathJax -->
|
|
<additionalOptions>${doclint.javadoc.qualifier} ${allowscript.javadoc.qualifier} -header '<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script><script type="text/javascript" async src="${math.mathjax.url}"></script>'</additionalOptions>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<configuration>
|
|
<archive combine.children="append">
|
|
<manifestEntries>
|
|
<!-- Java 9 -->
|
|
<Automatic-Module-Name>${commons.module.name}</Automatic-Module-Name>
|
|
<!-- Add entries from CP that are not inherited (for reasons unknown).
|
|
Replace ${implementation.build} property with the unique git build number. -->
|
|
<Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
|
|
<Implementation-Build>${buildNumber}; ${maven.build.timestamp}</Implementation-Build>
|
|
<X-Compile-Source-JDK>${maven.compiler.source}</X-Compile-Source-JDK>
|
|
<X-Compile-Target-JDK>${maven.compiler.target}</X-Compile-Target-JDK>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>buildnumber-maven-plugin</artifactId>
|
|
<configuration>
|
|
<!-- buildnumber-maven-plugin:
|
|
"for git getLastChangedRevision() returns null instead of the last revision"
|
|
Override CP to use the last revision of the repository (OK for release jars). -->
|
|
<useLastCommittedRevision>false</useLastCommittedRevision>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<reporting>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.rat</groupId>
|
|
<artifactId>apache-rat-plugin</artifactId>
|
|
<version>${commons.rat.version}</version>
|
|
<configuration>
|
|
<!-- Should agree with apache-rat-plugin config under <build> -->
|
|
<excludes combine.children="append">
|
|
<exclude>src/test/resources/data/**</exclude>
|
|
<exclude>src/site/resources/release-notes/RELEASE-NOTES-*.txt</exclude>
|
|
<exclude>dist-archive/**</exclude>
|
|
<exclude>**/site-content/**</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-changes-plugin</artifactId>
|
|
<version>${commons.changes.version}</version>
|
|
<configuration>
|
|
<resolutionIds>Fixed,Implemented</resolutionIds>
|
|
<statusIds>Resolved,Closed</statusIds>
|
|
<!-- Don't include sub-task -->
|
|
<typeIds>Bug,New Feature,Task,Improvement,Wish,Test</typeIds>
|
|
<component>${math.jira.component}</component>
|
|
</configuration>
|
|
<reportSets>
|
|
<reportSet>
|
|
<reports>
|
|
<report>changes-report</report>
|
|
<report>jira-report</report>
|
|
</reports>
|
|
</reportSet>
|
|
</reportSets>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
<configuration>
|
|
<configLocation>${math.parent.dir}/src/main/resources/checkstyle/checkstyle.xml</configLocation>
|
|
<headerLocation>${math.parent.dir}/src/main/resources/checkstyle/license-header.txt</headerLocation>
|
|
<suppressionsLocation>${math.parent.dir}/src/main/resources/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
|
|
<enableRulesSummary>false</enableRulesSummary>
|
|
<includeResources>false</includeResources>
|
|
</configuration>
|
|
<reportSets>
|
|
<reportSet>
|
|
<reports>
|
|
<report>checkstyle</report>
|
|
</reports>
|
|
</reportSet>
|
|
</reportSets>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.github.spotbugs</groupId>
|
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
|
<configuration>
|
|
<threshold>Normal</threshold>
|
|
<effort>Default</effort>
|
|
<excludeFilterFile>${math.parent.dir}/src/main/resources/spotbugs/spotbugs-exclude-filter.xml</excludeFilterFile>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-pmd-plugin</artifactId>
|
|
<configuration>
|
|
<verbose>false</verbose>
|
|
<printFailingErrors>true</printFailingErrors>
|
|
<targetJdk>${maven.compiler.target}</targetJdk>
|
|
<skipEmptyReport>false</skipEmptyReport>
|
|
<analysisCache>true</analysisCache>
|
|
<rulesets>
|
|
<ruleset>${math.parent.dir}/src/main/resources/pmd/pmd-ruleset.xml</ruleset>
|
|
</rulesets>
|
|
</configuration>
|
|
<reportSets>
|
|
<reportSet>
|
|
<reports>
|
|
<report>pmd</report>
|
|
<report>cpd</report>
|
|
</reports>
|
|
</reportSet>
|
|
</reportSets>
|
|
</plugin>
|
|
<plugin>
|
|
<!-- NOTE: javadoc config must also be set under <build> -->
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<configuration>
|
|
<!-- Java API links configured in commons-parent create redirect warnings on JDK 17.
|
|
The links are not required as detectJavaApiLink=true (default). -->
|
|
<links combine.self="override">
|
|
</links>
|
|
<!-- Enable MathJax -->
|
|
<additionalOptions>${doclint.javadoc.qualifier} ${allowscript.javadoc.qualifier} -header '<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script><script type="text/javascript" async src="${math.mathjax.url}"></script>'</additionalOptions>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</reporting>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<!-- Override a parent property if the SVN site checkout should not be performed.
|
|
This should activate for child modules. -->
|
|
<id>is-child-module</id>
|
|
<activation>
|
|
<file>
|
|
<missing>${basedir}/CONTRIBUTING.md</missing>
|
|
</file>
|
|
</activation>
|
|
<properties>
|
|
<perform.site.checkout>false</perform.site.checkout>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<!-- Runs if the SVN site checkout does not exist.
|
|
This is either obtained using svn (for the parent) or an empty directory is created.
|
|
The site-content directory is used when updating the live site. -->
|
|
<id>site-checkout</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<executions>
|
|
<!-- For multi-module builds, only the parent directory requires a site checkout.
|
|
This task will create an empty directory as the site checkout is missing. -->
|
|
<execution>
|
|
<id>empty-checkout</id>
|
|
<phase>pre-site</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<target name="empty-checkout" unless="${perform.site.checkout}">
|
|
<mkdir dir="${commons.scmPubCheckoutDirectory}" />
|
|
<echo file="${commons.scmPubCheckoutDirectory}${file.separator}README" message="The '${commons.scmPubCheckoutDirectory}' directory is empty in child modules." />
|
|
</target>
|
|
</configuration>
|
|
</execution>
|
|
<!-- Checkout the top-level directory of the site using SVN. -->
|
|
<execution>
|
|
<id>prepare-checkout</id>
|
|
<phase>pre-site</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<target name="prepare-checkout" if="${perform.site.checkout}">
|
|
<!-- Top level directory -->
|
|
<exec executable="svn" failifexecutionfails="false">
|
|
<arg line="checkout --depth immediates ${commons.scmPubUrl} ${commons.scmPubCheckoutDirectory}" />
|
|
</exec>
|
|
<!-- Create the directory in the event that no svn exectuable is on the path -->
|
|
<mkdir dir="${commons.scmPubCheckoutDirectory}" />
|
|
|
|
<echo file="${commons.scmPubCheckoutDirectory}.README">The '${commons.scmPubCheckoutDirectory}' directory is controlled by "subversion".
|
|
Running "svn up" will download *all* the files of the live web site at
|
|
https://commons.apache.org/math
|
|
This is avoided by creating an empty directory when svn is not available.
|
|
</echo>
|
|
</target>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<!-- Allow the SVN site checkout to be removed in the clean phase. -->
|
|
<id>clean-site-checkout</id>
|
|
<activation>
|
|
<file>
|
|
<exists>${commons.scmPubCheckoutDirectory}</exists>
|
|
</file>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>remove-checkout</id>
|
|
<phase>clean</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<target name="remove-checkout">
|
|
<delete dir="${commons.scmPubCheckoutDirectory}" quiet="true" />
|
|
<delete file="${commons.scmPubCheckoutDirectory}.README" quiet="true" />
|
|
</target>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<!-- Ekstazi (www.ekstazi.org) profile to optimize regression testing -->
|
|
<profile>
|
|
<id>ekstazi</id>
|
|
<activation>
|
|
<property>
|
|
<name>ekstazi</name>
|
|
</property>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.ekstazi</groupId>
|
|
<artifactId>ekstazi-maven-plugin</artifactId>
|
|
<version>4.4.0</version>
|
|
<configuration>
|
|
<forcefailing>true</forcefailing>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>ekstazi</id>
|
|
<goals>
|
|
<goal>select</goal>
|
|
<goal>restore</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<excludesFile>${java.io.tmpdir}/${user.name}EkstaziExcludes</excludesFile>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>travis</id>
|
|
<activation>
|
|
<property>
|
|
<name>env.TRAVIS</name>
|
|
<value>true</value>
|
|
</property>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.jacoco</groupId>
|
|
<artifactId>jacoco-maven-plugin</artifactId>
|
|
<version>${commons.jacoco.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>default-prepare-agent</id>
|
|
<goals>
|
|
<goal>prepare-agent</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>default-prepare-agent-integration</id>
|
|
<goals>
|
|
<goal>prepare-agent-integration</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>default-report</id>
|
|
<goals>
|
|
<goal>report</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>default-report-integration</id>
|
|
<goals>
|
|
<goal>report-integration</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>default-check</id>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
<configuration>
|
|
<rules>
|
|
<!-- implementation is needed only for Maven 2 -->
|
|
<rule implementation="org.jacoco.maven.RuleConfiguration">
|
|
<element>BUNDLE</element>
|
|
<limits>
|
|
<!-- implementation is needed only for Maven 2 -->
|
|
<limit implementation="org.jacoco.report.check.Limit">
|
|
<counter>COMPLEXITY</counter>
|
|
<value>COVEREDRATIO</value>
|
|
<minimum>0.60</minimum>
|
|
</limit>
|
|
</limits>
|
|
</rule>
|
|
</rules>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.eluder.coveralls</groupId>
|
|
<artifactId>coveralls-maven-plugin</artifactId>
|
|
<version>${commons.coveralls.version}</version>
|
|
<configuration>
|
|
<timestampFormat>${commons.coveralls.timestampFormat}</timestampFormat>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>release</id>
|
|
<modules>
|
|
<module>dist-archive</module>
|
|
</modules>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<developers>
|
|
<developer>
|
|
<name>Mikkel Meyer Andersen</name>
|
|
<id>mikl</id>
|
|
<email>mikl at apache dot org</email>
|
|
</developer>
|
|
<developer>
|
|
<name>Bill Barker</name>
|
|
<id>billbarker</id>
|
|
<email>billbarker at apache dot org</email>
|
|
</developer>
|
|
<developer>
|
|
<name>Sébastien Brisard</name>
|
|
<id>celestin</id>
|
|
<email>celestin at apache dot org</email>
|
|
</developer>
|
|
<developer>
|
|
<name>Albert Davidson Chou</name>
|
|
<id>achou</id>
|
|
<email>achou at apache dot org</email>
|
|
</developer>
|
|
<developer>
|
|
<name>Mark Diggory</name>
|
|
<id>mdiggory</id>
|
|
<email>mdiggory at apache dot org</email>
|
|
</developer>
|
|
<developer>
|
|
<name>Robert Burrell Donkin</name>
|
|
<id>rdonkin</id>
|
|
<email>rdonkin at apache dot org</email>
|
|
</developer>
|
|
<developer>
|
|
<name>Otmar Ertl</name>
|
|
<id>oertl</id>
|
|
<email>oertl at apache dot org</email>
|
|
</developer>
|
|
<developer>
|
|
<name>Luc Maisonobe</name>
|
|
<id>luc</id>
|
|
<email>luc at apache dot org</email>
|
|
</developer>
|
|
<developer>
|
|
<name>Tim O'Brien</name>
|
|
<id>tobrien</id>
|
|
<email>tobrien at apache dot org</email>
|
|
</developer>
|
|
<developer>
|
|
<name>J. Pietschmann</name>
|
|
<id>pietsch</id>
|
|
<email>j3322ptm at yahoo dot de</email>
|
|
</developer>
|
|
<developer>
|
|
<name>Dimitri Pourbaix</name>
|
|
<id>dimpbx</id>
|
|
<email>dimpbx at apache dot org</email>
|
|
</developer>
|
|
<developer>
|
|
<name>Gilles Sadowski</name>
|
|
<id>erans</id>
|
|
<email>erans at apache dot org</email>
|
|
</developer>
|
|
<developer>
|
|
<name>Greg Sterijevski</name>
|
|
<id>gregs</id>
|
|
<email>gregs at apache dot org</email>
|
|
</developer>
|
|
<developer>
|
|
<name>Brent Worden</name>
|
|
<id>brentworden</id>
|
|
<email>brentworden at apache dot org</email>
|
|
</developer>
|
|
<developer>
|
|
<name>Evan Ward</name>
|
|
<id>evanward</id>
|
|
<email>evanward at apache dot org</email>
|
|
</developer>
|
|
<developer>
|
|
<name>Rob Tompkins</name>
|
|
<id>chtompki</id>
|
|
<email>chtompki at apache dot org</email>
|
|
</developer>
|
|
<developer>
|
|
<name>Eric Barnhill</name>
|
|
<id>ericbarnhill</id>
|
|
<email>ericbarnhill at apache dot org</email>
|
|
</developer>
|
|
<developer>
|
|
<name>Alex Herbert</name>
|
|
<id>aherbert</id>
|
|
<email>aherbert at apache dot org</email>
|
|
</developer>
|
|
</developers>
|
|
<contributors>
|
|
<contributor>
|
|
<name>Eldar Agalarov</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Tim Allison</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>C. Scott Ananian</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Mark Anderson</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Peter Andrews</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Rémi Arntzen</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Matt Adereth</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Jared Becksfort</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Michael Bjorkegren</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Brian Bloniarz</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>John Bollinger</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Cyril Briquet</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Dave Brosius</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Dan Checkoway</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Anders Conbere</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Charles Cooper</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Paul Cowan</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Benjamin Croizet</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Larry Diamond</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Aleksei Dievskii</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Rodrigo di Lorenzo Lopes</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Hasan Diwan</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Ted Dunning</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Ole Ersoy</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Ajo Fod</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>John Gant</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Ken Geis</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Hank Grabowski</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Bernhard Grünewaldt</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Elliotte Rusty Harold</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Dennis Hendriks</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Reid Hochstedler</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Matthias Hummel</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Curtis Jensen</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Bruce A Johnson</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Ismael Juma</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Eugene Kirpichov</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Oleksandr Kornieiev</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Piotr Kochanski</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Sergei Lebedev</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Bob MacCallum</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Jake Mannix</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Benjamin McCann</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Patrick Meyer</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>J. Lewis Muir</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Venkatesha Murthy</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Thomas Neidhart</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Christopher Nix</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Fredrik Norin</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Sean Owen</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Sujit Pal</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Todd C. Parnell</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Qualtagh</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Andreas Rieger</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Sébastien Riou</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Karl Richter</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Benedikt Ritter</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Bill Rossi</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Matthew Rowles</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Pavel Ryzhov</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Joni Salonen</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Michael Saunders</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Thorsten Schaefer</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Christopher Schuck</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Christian Semrau</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>David Stefka</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Mauro Talevi</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Radoslav Tsvetkov</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Kim van der Linde</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Alexey Volkov</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Andrew Waterman</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Jörg Weimar</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Christian Winter</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Piotr Wydrych</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Xiaogang Zhang</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Chris Popp</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Artavazd Balaian</name>
|
|
</contributor>
|
|
<contributor>
|
|
<name>Samy Badjoudj</name>
|
|
</contributor>
|
|
</contributors>
|
|
|
|
</project>
|