Maven Project Parent POM

This POM is the common parent of all of the Maven components in the Apache Maven project. Most of its contents are pinning down version numbers of plugins. It does provide minimal dependencyManagement for plexus-component and plugin-tools annotations.

This POM contains Maven developers information for the Project Team report, sorted by role and id. See the LDAP extract for more accurate committers and PMC members lists.

The reporting Profile

This POM provides reporting profile for rendering documentation during site generation:

mvn -Preporting site

See Plugins report for a list of configured report plugins.

The jdk-toolchain Profile

This POM provides jdk-toolchain profile to activate JDK selection as a toolchain with version requirement configured as minimum java version for the project.

The format Profile

Since version 38 the format profile can be used to explicitly format source files with spotless-maven-plugin according to Maven standards. This requires the phase process-sources. After applying bigger reformatting it is recommended to add or update a .git-blame-ignore-revs file in the root of the repository containing a line with the SHA1 of the formatting commit to ignore those changes when using git blame (or equivalent concepts). This is automatically considered by GitHub and can optionally be considered with local git blame

Site Publication

This POM prepares site publication to Apache Maven's site svnpubsub. Every inheriting POM needs to define maven.site.path property with relative path to ${project.artifactId}-LATEST publication uri, and define distributionManagement to avoid automatic inheritance from parent:

  <properties>
    <maven.site.path>xxx-archives/${project.artifactId}-LATEST</maven.site.path>
  </properties>
  <distributionManagement>
    <site>
      <id>apache.website</id>
      <url>scm:svn:https://svn.apache.org/repos/infra/websites/production/maven/components/${maven.site.path}</url>
    </site>
  </distributionManagement>

Once this is configured, the site can be published with:

mvn -Preporting site site:stage
mvn scm-publish:publish-scm

See deploying Maven components reference documentation for more information.

History

As of version 38, this POM sets the Java source and target versions to 1.8. Thus, as any plugin (or other component) moved to version 38+ of this POM, it moves to requiring Java 1.8 (was Java 1.5 since version 21, Java 1.6 since version 27, and Java 1.7 since version 34).

Version Release Date
41 (diff, commits) 2023-11-08
40 (diff, commits) 2023-06-12
39 (diff, commits) 2022-12-11
38 (diff, commits) 2022-11-21
37 (diff, commits) 2022-07-20
36 (diff, commits) 2022-04-18
35 (diff, commits) 2022-03-02
34 (diff, commits) 2020-01-30
33 (diff, commits) 2018-09-11
32 (diff, commits) 2018-07-18
31 (diff, commits) 2018-02-05
30 (diff, commits) 2016-05-26
27 (diff, commits) 2015-09-23
26 (diff, commits) 2014-11-13
25 (diff, commits) 2014-10-22
24 (diff, commits) 2014-03-27
23 (diff, commits) 2013-01-21
22 (diff, commits) 2012-08-08
21 (diff, commits) 2011-08-18
20 (diff, commits) 2011-06-15
19 (diff, commits) 2011-02-15
18 (diff, commits) 2010-11-26
17 (diff, commits) 2010-11-04