From 347ec7b6e77acf72d59bd212033deba8eb914b49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Boutemy?= Date: Fri, 31 Oct 2014 07:44:30 +0100 Subject: [PATCH] [MNG-5712] improved toolchains descriptor documentation --- maven-core/src/main/mdo/toolchains.mdo | 38 ++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/maven-core/src/main/mdo/toolchains.mdo b/maven-core/src/main/mdo/toolchains.mdo index e710b08f61..a9e2d219d2 100644 --- a/maven-core/src/main/mdo/toolchains.mdo +++ b/maven-core/src/main/mdo/toolchains.mdo @@ -26,14 +26,26 @@ toolchains MavenToolchains This is a reference for the Maven Toolchains descriptor.

+

The default location for the toolchains file is ~/.m2/toolchains.xml

+

A Toolchain is a preconfigured object that Maven plugins can use for tool configuration retrieval (location and other information).

+

The toolchains-plugin can read available toolchains on the user's computer + and match them against the toolchain requirements of the project (as configured in pom.xml): + if match is found, the toolchain instance is made available to other Maven plugins.

+

With jdk toolchain, for example, instead of being stuck with the JDK used to run Maven, all plugins can use + the same other JDK instance without hardcoding absolute paths into the pom.xml + and without configuring every plugin that require path to JDK tools.

+

See the Guide to Using Toolchains for + more information.

]]>
+ package org.apache.maven.toolchain.model + PersistedToolchains @@ -46,7 +58,7 @@ toolchains 1.0.0+ - + ToolchainModel * @@ -57,23 +69,43 @@ ToolchainModel 1.0.0+ + Definition of a toolchain instance. type 1.0.0+ - + +
  • jdk for + JDK Standard Toolchain,
  • +
  • ...
  • + + ]]> String
    provides 1.0.0+ DOM + + Toolchain identification information, which will be matched against project requirements.

    +

    Actual content structure is completely open: each toochain type will define its own format and semantics.

    +

    In general, this is a properties format: <name>value</name> with + predefined properties names.

    + ]]>
    configuration 1.0.0+ DOM + + Toolchain configuration information, like location or any information that is to be retrieved.

    +

    Actual content structure is completely open: each toochain type will define its own format and semantics.

    +

    In general, this is a properties format: <name>value</name> wih + predefined properties names.

    + ]]>