Release Notes – Maven 3.9.0

The Apache Maven team would like to announce the release of Maven 3.9.0.

Maven 3.9.0 is available for download.

Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting, and documentation from a central place.

The core release is independent of plugin releases. Further releases of plugins will be made separately. See the PluginList for more information.

If you have any questions, please consult:

Overview About the Changes

  • Minimum Java version to use with Maven 3.9.0 is raised to Java 8.
  • With Java 8, upgrade of several key dependencies became possible as well.
  • Several backports from Maven 4.x line.
  • Long outstanding issue fixes from Maven 3.x line.
  • Cutting ties with Maven 2 backward compatibility, preparing grounds for Maven 4.
  • General fixes and improvements.

Potentially Breaking Core Changes (if migrating from 3.8.x)

  • The Maven Resolver transport has changed from Wagon to “native HTTP”, see Resolver Transport guide.
  • Maven 2.x was auto-injecting an ancient version of plexus-utils dependency into the plugin classpath, and Maven 3.x continued doing this to preserve backward compatibility. Starting with Maven 3.9, it does not happen anymore. This change may lead to plugin breakage. The fix for affected plugin maintainers is to explicitly declare a dependency on plexus-utils. The workaround for affected plugin users is to add this dependency to plugin dependencies until issue is fixed by the affected plugin maintainer. See MNG-6965.
  • Mojos are prevented to boostrap new instance of RepositorySystem (for example by using deprecated ServiceLocator), they should reuse RepositorySystem instance provided by Maven instead. See MNG-7471.
  • Each line in .mvn/maven.config is now interpreted as a single argument. That is, if the file contains multiple arguments, these must now be placed on separate lines, see MNG-7684.
  • System and user properties handling cleanup, see MNG-7556. As a consequence, this may introduce breakage in environments where the user properties were used to set system properties or other way around, for example see MNG-7887.

Notable Core Improvements

  • Help with projects maintenance: Maven now warns about use of deprecated plugins, goals, parameters, etc.
  • Add support for “mvn pluginPrefix:version:goal” invocation, and align console logging as well (make it copy-paste-able).
  • Add profile activation by packaging.
  • Maven 3.9.0 is now fully compatible with new 3.x line of install and deploy plugins (previous versions warns about this).

Notable Resolver 1.9.x Improvements

  • Shared local repository (advisory file locking, Hazelcast or Redis, see documentation).
  • Split local repository, plus “workspace” support for branched development (see documentation).
  • Switchable and alternative resolver transports included, with default switched to native transport.
  • Pluggable checksum algorithms API (is not tied to MessageDigest anymore, see documentation).
  • Choice of resolver collectors: a new BF collector (with parallel POM downloads) has been added along the existing DF one.
  • Remote repository filtering (see documentation).
  • Trusted checksum sources (ability to provide some or all artifact checksums ahead of time).
  • Pluggable artifact resolver post-processor, with “trustedChecksums” implementation.
  • Chained local repository (for IT isolation between “outer” and “inner” builds).
  • Recording reverse dependency tree tracking information into local repository.

The full list of changes can be found in our issue management system.

Known Issues

  • Observed roughly 10% slow-down on large builds when compared to Maven 3.8.7, tracked on MNG-7677.

Complete Release Notes

See complete release notes for all versions