Toolchains for Maven Plugins

The Maven Toolchains provide a way for for plugins to discover the tools (such as JDK) to be used when building without the need to configure the tools. This allows a project to be built using a specific version of a tool independent from the one Maven is running with.

Note: Maven Toolchains is compatible with Maven version 2.0.9 and higher. For more details on its design and implementation, you can refer to this site.

Below are the plugins that are toolchain-aware. Please take note that these are still in the SNAPSHOT versions and are not yet released.

  • maven-compiler-plugin-2.1-SNAPSHOT
  • maven-javadoc-plugin-2.5-SNAPSHOT
  • maven-surefire-plugin-2.5-SNAPSHOT
  • exec-maven-plugin-1.1.1-SNAPSHOT