alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java example source code file (pom.xml)

This example Java source code file (pom.xml) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords

apache, asf, commons, java, jira, license, mathjax, meyer, temporary, this, tools, version, you

The pom.xml Java example source code

<?xml version="1.0"?>
<!--
   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">
  <parent>
    <groupId>org.apache.commons
    <artifactId>commons-parent
    <version>39
  </parent>
  <modelVersion>4.0.0
  <groupId>org.apache.commons
  <artifactId>commons-math3
  <version>3.6.1
  <name>Apache Commons Math

  <inceptionYear>2003
  <description>The Apache Commons Math project is a library of lightweight, self-contained mathematics and statistics components addressing the most common practical problems not immediately available in the Java programming language or commons-lang.

  <url>http://commons.apache.org/proper/commons-math/

  <issueManagement>
    <system>jira
    <url>http://issues.apache.org/jira/browse/MATH
  </issueManagement>

  <scm>
    <connection>scm:git:http://git-wip-us.apache.org/repos/asf/commons-math.git
    <developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/commons-math.git
    <url>https://git-wip-us.apache.org/repos/asf?p=commons-math.git
  </scm>

  <distributionManagement>
    <site>
      <id>apache.website
      <name>Apache Commons Site
      <url>scm:svn:https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-math/
    </site>
  </distributionManagement>

  <developers>
    <developer>
      <name>Mikkel Meyer Andersen
      <id>mikl
      <email>mikl at apache dot org
    </developer>
    <developer>
      <name>Bill Barker
      <id>billbarker
      <email>billbarker at apache dot org
    </developer>
    <developer>
      <name>Sébastien Brisard
      <id>celestin
      <email>celestin at apache dot org
    </developer>
    <developer>
      <name>Albert Davidson Chou
      <id>achou
      <email>achou at apache dot org
    </developer>
    <developer>
      <name>Mark Diggory
      <id>mdiggory
      <email>mdiggory at apache dot org
    </developer>
    <developer>
      <name>Robert Burrell Donkin
      <id>rdonkin
      <email>rdonkin at apache dot org
    </developer>
    <developer>
      <name>Otmar Ertl
      <id>oertl
      <email>oertl at apache dot org
    </developer>
    <developer>
      <name>Luc Maisonobe
      <id>luc
      <email>luc at apache dot org
    </developer>
    <developer>
      <name>Tim O'Brien
      <id>tobrien
      <email>tobrien at apache dot org
    </developer>
    <developer>
      <name>J. Pietschmann
      <id>pietsch
      <email>j3322ptm at yahoo dot de
    </developer>
    <developer>
      <name>Dimitri Pourbaix
      <id>dimpbx
      <email>dimpbx at apache dot org
    </developer>
    <developer>
      <name>Gilles Sadowski
      <id>erans
      <email>erans at apache dot org
    </developer>
    <developer>
      <name>Greg Sterijevski
      <id>gregs
      <email>gregs at apache dot org
    </developer>
    <developer>
      <name>Brent Worden
      <id>brentworden
      <email>brentworden at apache dot org
    </developer>
    <developer>
      <name>Thomas Neidhart
      <id>tn
      <email>tn at apache dot org
    </developer>
    <developer>
      <name>Evan Ward
      <id>evanward
      <email>evanward at apache dot org
    </developer>
  </developers>
  <contributors>
    <contributor>
      <name>Eldar Agalarov
    </contributor>
    <contributor>
      <name>Tim Allison
    </contributor>
    <contributor>
      <name>C. Scott Ananian
    </contributor>
    <contributor>
      <name>Mark Anderson
    </contributor>
    <contributor>
      <name>Peter Andrews
    </contributor>
    <contributor>
      <name>Rémi Arntzen
    </contributor>
    <contributor>
      <name>Matt Adereth
    </contributor>
    <contributor>
      <name>Jared Becksfort
    </contributor>
    <contributor>
      <name>Michael Bjorkegren
    </contributor>
    <contributor>
      <name>Brian Bloniarz
    </contributor>
    <contributor>
      <name>John Bollinger
    </contributor>
    <contributor>
      <name>Cyril Briquet
    </contributor>
    <contributor>
      <name>Dave Brosius
    </contributor>
    <contributor>
      <name>Dan Checkoway
    </contributor>
    <contributor>
      <name>Anders Conbere
    </contributor>
    <contributor>
      <name>Charles Cooper
    </contributor>
    <contributor>
      <name>Paul Cowan
    </contributor>
    <contributor>
      <name>Benjamin Croizet
    </contributor>
    <contributor>
      <name>Larry Diamond
    </contributor>
    <contributor>
      <name>Aleksei Dievskii
    </contributor>
    <contributor>
      <name>Rodrigo di Lorenzo Lopes
    </contributor>
    <contributor>
      <name>Hasan Diwan
    </contributor>
    <contributor>
      <name>Ted Dunning
    </contributor>
    <contributor>
      <name>Ole Ersoy
    </contributor>
    <contributor>
      <name>Ajo Fod
    </contributor>
    <contributor>
      <name>John Gant
    </contributor>
    <contributor>
      <name>Ken Geis
    </contributor>
    <contributor>
      <name>Hank Grabowski
    </contributor>
    <contributor>
      <name>Bernhard Grünewaldt
    </contributor>
    <contributor>
      <name>Elliotte Rusty Harold
    </contributor>
    <contributor>
      <name>Dennis Hendriks
    </contributor>
    <contributor>
      <name>Reid Hochstedler
    </contributor>
    <contributor>
      <name>Matthias Hummel
    </contributor>
    <contributor>
      <name>Curtis Jensen
    </contributor>
    <contributor>
      <name>Bruce A Johnson
    </contributor>
    <contributor>
      <name>Ismael Juma
    </contributor>
    <contributor>
      <name>Eugene Kirpichov
    </contributor>
    <contributor>
      <name>Oleksandr Kornieiev
    </contributor>
    <contributor>
      <name>Piotr Kochanski
    </contributor>
    <contributor>
      <name>Sergei Lebedev
    </contributor>
    <contributor>
      <name>Bob MacCallum
    </contributor>
    <contributor>
      <name>Jake Mannix
    </contributor>
    <contributor>
      <name>Benjamin McCann
    </contributor>
    <contributor>
      <name>Patrick Meyer
    </contributor>
    <contributor>
      <name>J. Lewis Muir
    </contributor>
    <contributor>
      <name>Venkatesha Murthy
    </contributor>
    <contributor>
      <name>Christopher Nix
    </contributor>
    <contributor>
      <name>Fredrik Norin
    </contributor>
    <contributor>
      <name>Sean Owen
    </contributor>
    <contributor>
      <name>Sujit Pal
    </contributor>
    <contributor>
      <name>Todd C. Parnell
    </contributor>
    <contributor>
      <name>Andreas Rieger
    </contributor>
    <contributor>
      <name>Sébastien Riou
    </contributor>
    <contributor>
      <name>Bill Rossi
    </contributor>
    <contributor>
      <name>Matthew Rowles
    </contributor>
    <contributor>
      <name>Pavel Ryzhov
    </contributor>
    <contributor>
      <name>Joni Salonen
    </contributor>
    <contributor>
      <name>Michael Saunders
    </contributor>
    <contributor>
      <name>Thorsten Schaefer
    </contributor>
    <contributor>
      <name>Christopher Schuck
    </contributor>
    <contributor>
      <name>Christian Semrau
    </contributor>
    <contributor>
      <name>David Stefka
    </contributor>
    <contributor>
      <name>Mauro Talevi
    </contributor>
    <contributor>
      <name>Radoslav Tsvetkov
    </contributor>
    <contributor>
      <name>Kim van der Linde
    </contributor>
    <contributor>
      <name>Alexey Volkov
    </contributor>
    <contributor>
      <name>Andrew Waterman
    </contributor>
    <contributor>
      <name>Jörg Weimar
    </contributor>
    <contributor>
      <name>Christian Winter
    </contributor>
    <contributor>
      <name>Piotr Wydrych
    </contributor>
    <contributor>
      <name>Xiaogang Zhang
    </contributor>
    <contributor>
      <name>Chris Popp
    </contributor>
  </contributors>

  <dependencies>
    <dependency>
      <groupId>junit
      <artifactId>junit
      <version>4.11
      <scope>test
    </dependency>
  </dependencies>

  <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
    <!-- This value must reflect the current name of the base package. -->
    <commons.osgi.symbolicName>org.apache.commons.math3
    <!-- do not use snapshot suffix here -->
    <commons.release.version>3.6.1
    <commons.release.desc>(requires Java 1.5+)
    <commons.rc.version>RC1
    <commons.binary.suffix>-bin

    <commons.release.2.version>2.2
    <!-- override parent name, because 2.2 uses different artifactId -->
    <commons.release.2.name>commons-math-${commons.release.2.version}
    <commons.release.2.desc>(requires Java 1.5+)
    <commons.release.2.binary.suffix>

    <commons.jira.id>MATH
    <commons.jira.pid>12310485
    <commons.encoding>UTF-8
    <maven.compiler.source>1.5
    <maven.compiler.target>1.5
    <math.pmd.version>3.5
    <math.findbugs.version>3.0.2
    <math.checkstyle.version>2.17
    <math.clirr.version>2.6.1

    <!-- Temporary fix to support Java 8 -->
    <commons.jacoco.version>0.7.5.201505241946
    <commons.jacoco.classRatio>0.96
    <commons.jacoco.instructionRatio>0.8
    <commons.jacoco.methodRatio>0.8
    <commons.jacoco.branchRatio>0.8
    <commons.jacoco.complexityRatio>0.8
    <commons.jacoco.lineRatio>0.85
    <commons.jacoco.haltOnFailure>false

    <commons.site.path>math
    <commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-math
    <commons.scmPubCheckoutDirectory>site-content

    <!-- Temporary fix to replace svn-based build number with git-based build number -->
    <buildnumber.skip>true
    <math.jgit.buildnumber.version>1.2.10
    <implementation.build>${git.revision}; ${maven.build.timestamp}

  </properties>

  <build>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins
          <artifactId>maven-surefire-plugin
            <configuration>
              <includes>
                <include>**/*Test.java
                <include>**/*TestBinary.java
                <include>**/*TestPermutations.java
              </includes>
              <excludes>
                <exclude>**/*AbstractTest.java
              </excludes>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-assembly-plugin
          <configuration>
            <descriptors>
              <descriptor>src/main/assembly/src.xml
              <descriptor>src/main/assembly/bin.xml
            </descriptors>
            <!-- There are a lot of long file names. Suppress the warnings. -->
            <tarLongFileMode>gnu
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo
          <artifactId>clirr-maven-plugin
          <version>${math.clirr.version}
          <configuration>
            <minSeverity>${minSeverity}
            <ignoredDifferencesFile>${basedir}/clirr-ignored.xml
          </configuration>
          <executions>
            <execution>
              <goals>
              </goals>
            </execution>
          </executions>
        </plugin>
      <plugin>
        <artifactId>maven-pmd-plugin
        <version>${math.pmd.version}
        <configuration>
          <targetJdk>${maven.compiler.target}
          <skipEmptyReport>false
          <rulesets>
            <ruleset>${basedir}/pmd-ruleset.xml
          </rulesets>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins
        <artifactId>maven-scm-publish-plugin
        <configuration>
          <ignorePathsToDelete>
            <ignorePathToDelete>javadocs
          </ignorePathsToDelete>
        </configuration>
      </plugin>

      <plugin>
        <artifactId>maven-antrun-plugin
        <executions>
          <execution>
            <phase>package
            <configuration>
              <target>
                <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-tools.jar">
                  <metainf dir="${basedir}" includes="NOTICE.txt,LICENSE.txt" />
                  <manifest>
                    <attribute name="Specification-Title" value="${project.name} Tools" />
                    <attribute name="Implementation-Title" value="${project.name} Tools" />
                    <attribute name="Implementation-Vendor" value="${project.organization.name}" />
                    <attribute name="Implementation-Version" value="${project.version}" />
                    <attribute name="Implementation-Vendor-Id" value="org.apache" />
                    <attribute name="Implementation-Build" value="${implementation.build}"/>
                    <attribute name="X-Compile-Source-JDK" value="${maven.compiler.source}" />
                    <attribute name="X-Compile-Target-JDK" value="${maven.compiler.target}" />
                  </manifest>
                  <fileset dir="${project.build.directory}/test-classes"
                           includes="org/apache/commons/math3/PerfTestUtils*" />
                </jar>
              </target>
            </configuration>
            <goals>
              <goal>run
            </goals>
          </execution>
        </executions>
      </plugin>
      <!--  Attaches the commons-math3 tools JAR to the Maven lifecycle
            to ensure they will be signed and deployed as normal -->
      <plugin>
        <groupId>org.codehaus.mojo
        <artifactId>build-helper-maven-plugin
        <version>1.7
        <executions>
          <execution>
            <id>attach-artifacts
            <phase>package
            <goals>
              <goal>attach-artifact
            </goals>
            <configuration>
              <artifacts>
                <artifact>
                  <file>${project.build.directory}/${project.artifactId}-${project.version}-tools.jar
                  <type>jar
                  <classifier>tools
                </artifact>
              </artifacts>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <!--  MathJax -->
      <plugin>
        <groupId>org.apache.maven.plugins
        <artifactId>maven-javadoc-plugin
        <configuration>
          <additionalparam>-header '<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>'
        </configuration>
      </plugin>
    </plugins>
  </build>

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins
        <artifactId>maven-changes-plugin
        <version>${commons.changes.version}
        <configuration>
          <issueLinkTemplatePerSystem>
            <default>%URL%/%ISSUE%
          </issueLinkTemplatePerSystem>
          <!--  Add sample JIRA report - 'mvn changes:jira-report' or 'mvn site' -->
          <onlyCurrentVersion>false
          <columnNames>Fix Version,Key,Summary,Type,Resolution,Status
          <!-- Sort cols have to be reversed in JIRA 4 -->
          <sortColumnNames>Key DESC,Type,Fix Version DESC
          <resolutionIds>Fixed
          <statusIds>Resolved,Closed
          <!-- Don't include sub-task -->
          <typeIds>Bug,New Feature,Task,Improvement,Wish,Test
          <fixVersionIds>${commons.release.version}
          <!-- The default is 100 -->
          <maxEntries>100
        </configuration>
        <reportSets>
          <reportSet>
            <reports>
              <report>changes-report
              <report>jira-report
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
      <plugin>
        <groupId>org.apache.rat
        <artifactId>apache-rat-plugin
        <version>${commons.rat.version}
        <configuration>
          <excludes>

            <!-- MANIFEST files cannot have any comments, so we can't put license header -->
            <exclude>src/test/maxima/special/RealFunctionValidation/MANIFEST.txt

            <!-- 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/math3/random/testData.txt
            <exclude>src/test/resources/org/apache/commons/math3/random/emptyFile.txt
            <exclude>src/test/resources/org/apache/commons/math3/stat/data/PiDigits.txt
            <exclude>src/test/resources/org/apache/commons/math3/stat/data/NumAcc3.txt
            <exclude>src/test/resources/org/apache/commons/math3/stat/data/Lew.txt
            <exclude>src/test/resources/org/apache/commons/math3/stat/data/NumAcc2.txt
            <exclude>src/test/resources/org/apache/commons/math3/stat/data/NumAcc1.txt
            <exclude>src/test/resources/org/apache/commons/math3/stat/data/Lottery.txt
            <exclude>src/test/resources/org/apache/commons/math3/stat/data/NumAcc4.txt
            <exclude>src/test/resources/org/apache/commons/math3/stat/data/Michelso.txt
            <exclude>src/test/resources/org/apache/commons/math3/stat/data/Mavro.txt
            <exclude>src/test/resources/org/apache/commons/math3/geometry/euclidean/threed/issue-1211.bsp
            <exclude>src/test/resources/org/apache/commons/math3/geometry/euclidean/threed/pentomino-N-bad-orientation.ply
            <exclude>src/test/resources/org/apache/commons/math3/geometry/euclidean/threed/pentomino-N-hole.ply
            <exclude>src/test/resources/org/apache/commons/math3/geometry/euclidean/threed/pentomino-N-out-of-plane.ply
            <exclude>src/test/resources/org/apache/commons/math3/geometry/euclidean/threed/pentomino-N-too-close.ply
            <exclude>src/test/resources/org/apache/commons/math3/geometry/euclidean/threed/pentomino-N.ply

            <!-- 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/math3/random/new-joe-kuo-6.1000

            <!-- text file explaining reference to a public domain image -->
            <exclude>src/userguide/resources/references.txt

            <!-- version 0.8 of apache-rat-plugin does not exclude properly
                 some default development tools files (see RAT-126) -->
            <exclude>bin/**
            <exclude>.gitignore
            <exclude>.git/**
            <exclude>.checkstyle
            <exclude>.ekstazi/**

          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo
        <artifactId>findbugs-maven-plugin
        <version>${math.findbugs.version}
        <configuration>
          <threshold>Normal
          <effort>Default
          <excludeFilterFile>${basedir}/findbugs-exclude-filter.xml
       </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins
        <artifactId>maven-checkstyle-plugin
        <version>${math.checkstyle.version}
        <configuration>
          <configLocation>${basedir}/checkstyle.xml
          <enableRulesSummary>false
          <includeResources>false
          <headerLocation>${basedir}/license-header.txt
        </configuration>
        <reportSets>
          <reportSet>
            <reports>
              <report>checkstyle
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo
        <artifactId>clirr-maven-plugin
        <version>${math.clirr.version}
        <configuration>
          <minSeverity>${minSeverity}
          <ignoredDifferencesFile>${basedir}/clirr-ignored.xml
         </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-pmd-plugin
        <version>${math.pmd.version}
        <configuration>
          <targetJdk>${maven.compiler.target}
          <skipEmptyReport>false
          <rulesets>
            <ruleset>${basedir}/pmd-ruleset.xml
          </rulesets>
        </configuration>
        <reportSets>
          <reportSet>
            <reports>
              <report>pmd
              <!-- As of 3.x series, the cpd report sees (correctly) numerous duplications -->
              <!-- This is due to packages being renamed, and the old name still needs to be -->
              <!-- available for compatibility. They will be removed in 4.0 -->
              <!-- So we temporarily disable the CPD report -->
              <!--  -->
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
      <!--  MathJax -->
      <plugin>
        <groupId>org.apache.maven.plugins
        <artifactId>maven-javadoc-plugin
        <configuration>
          <additionalparam>-header '<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>'
        </configuration>
      </plugin>
    </plugins>
  </reporting>

  <profiles>
    <profile>
      <id>jgit-buildnumber
      <activation>
        <file>
          <exists>.git
        </file>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>ru.concerteza.buildnumber
            <artifactId>maven-jgit-buildnumber-plugin
            <version>${math.jgit.buildnumber.version}
            <executions>
              <execution>
                <phase>generate-resources
                <goals>
                  <goal>extract-buildnumber
                </goals>
              </execution>
            </executions>
            <configuration>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>setup-checkout
      <activation>
        <file>
          <missing>site-content
        </file>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins
            <artifactId>maven-antrun-plugin
            <version>1.7
            <executions>
              <execution>
                <id>prepare-checkout
                <phase>pre-site
                <goals>
                  <goal>run
                </goals>
                <configuration>
                  <tasks>
                    <exec executable="svn">
                      <arg line="checkout --depth immediates ${commons.scmPubUrl} ${commons.scmPubCheckoutDirectory}" />
                    </exec>

                    <exec executable="svn">
                      <arg line="update --set-depth exclude ${commons.scmPubCheckoutDirectory}/javadocs" />
                    </exec>

                    <pathconvert pathsep=" " property="dirs">
                      <dirset dir="${commons.scmPubCheckoutDirectory}" includes="*" />
                    </pathconvert>
                    <exec executable="svn">
                      <arg line="update --set-depth infinity ${dirs}" />
                    </exec>
                  </tasks>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <!-- Ekstazi (www.ekstazi.org) profile to optimize regression testing -->
    <profile>
      <id>ekstazi
      <activation>
        <property>
          <name>ekstazi
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.ekstazi
            <artifactId>ekstazi-maven-plugin
            <version>4.4.0
            <configuration>
              <forcefailing>true
            </configuration>
            <executions>
              <execution>
                <id>ekstazi
                <goals>
                  <goal>select
                  <goal>restore
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins
            <artifactId>maven-surefire-plugin
            <configuration>
              <excludesFile>${java.io.tmpdir}/${user.name}EkstaziExcludes
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

</project>

Other Java examples (source code examples)

Here is a short list of links related to this Java pom.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.