mirror of https://github.com/apache/maven.git
[MNG-5712] improved toolchains descriptor documentation
This commit is contained in:
parent
9ce1f17d1b
commit
347ec7b6e7
|
@ -26,14 +26,26 @@
|
||||||
<id>toolchains</id>
|
<id>toolchains</id>
|
||||||
<name>MavenToolchains</name>
|
<name>MavenToolchains</name>
|
||||||
<description><![CDATA[
|
<description><![CDATA[
|
||||||
|
<p>This is a reference for the Maven Toolchains descriptor.</p>
|
||||||
|
<p>The default location for the toolchains file is <code>~/.m2/toolchains.xml</code></p>
|
||||||
|
<p>A Toolchain is a preconfigured object that Maven plugins can use for tool configuration retrieval (location and other information).</p>
|
||||||
|
<p>The <a href="/plugins/maven-toolchains-plugin/">toolchains-plugin</a> can read available toolchains on the user's computer
|
||||||
|
and match them against the toolchain requirements of the project (as configured in <code>pom.xml</code>):
|
||||||
|
if match is found, the toolchain instance is made available to other Maven plugins.</p>
|
||||||
|
<p>With <code>jdk</code> 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 <code>pom.xml</code>
|
||||||
|
and without configuring every plugin that require path to JDK tools.</p>
|
||||||
|
<p>See the <a href="/guides/mini/guide-using-toolchains.html">Guide to Using Toolchains</a> for
|
||||||
|
more information.</p>
|
||||||
]]></description>
|
]]></description>
|
||||||
|
|
||||||
<defaults>
|
<defaults>
|
||||||
<default>
|
<default>
|
||||||
<key>package</key>
|
<key>package</key>
|
||||||
<value>org.apache.maven.toolchain.model</value>
|
<value>org.apache.maven.toolchain.model</value>
|
||||||
</default>
|
</default>
|
||||||
</defaults>
|
</defaults>
|
||||||
|
|
||||||
<classes>
|
<classes>
|
||||||
<class rootElement="true" xml.tagName="toolchains" xsd.compositor="sequence">
|
<class rootElement="true" xml.tagName="toolchains" xsd.compositor="sequence">
|
||||||
<name>PersistedToolchains</name>
|
<name>PersistedToolchains</name>
|
||||||
|
@ -46,7 +58,7 @@
|
||||||
<field>
|
<field>
|
||||||
<name>toolchains</name>
|
<name>toolchains</name>
|
||||||
<version>1.0.0+</version>
|
<version>1.0.0+</version>
|
||||||
<description><![CDATA[The toolchain definition.]]></description>
|
<description><![CDATA[The toolchain instance definition.]]></description>
|
||||||
<association xml.itemsStyle="flat">
|
<association xml.itemsStyle="flat">
|
||||||
<type>ToolchainModel</type>
|
<type>ToolchainModel</type>
|
||||||
<multiplicity>*</multiplicity>
|
<multiplicity>*</multiplicity>
|
||||||
|
@ -57,23 +69,43 @@
|
||||||
<class>
|
<class>
|
||||||
<name>ToolchainModel</name>
|
<name>ToolchainModel</name>
|
||||||
<version>1.0.0+</version>
|
<version>1.0.0+</version>
|
||||||
|
<description>Definition of a toolchain instance.</description>
|
||||||
<fields>
|
<fields>
|
||||||
<field>
|
<field>
|
||||||
<name>type</name>
|
<name>type</name>
|
||||||
<version>1.0.0+</version>
|
<version>1.0.0+</version>
|
||||||
<description>
|
<description>
|
||||||
<![CDATA[Type of toolchain]]></description>
|
<![CDATA[Type of toolchain:<ul>
|
||||||
|
<li><code>jdk</code> for
|
||||||
|
<a href="http://maven.apache.org/plugins/maven-toolchains-plugin/toolchains/jdk.html">JDK Standard Toolchain</a>,</li>
|
||||||
|
<li>...</li>
|
||||||
|
</ul>
|
||||||
|
]]></description>
|
||||||
<type>String</type>
|
<type>String</type>
|
||||||
</field>
|
</field>
|
||||||
<field>
|
<field>
|
||||||
<name>provides</name>
|
<name>provides</name>
|
||||||
<version>1.0.0+</version>
|
<version>1.0.0+</version>
|
||||||
<type>DOM</type>
|
<type>DOM</type>
|
||||||
|
<description>
|
||||||
|
<![CDATA[
|
||||||
|
<p>Toolchain identification information, which will be matched against project requirements.</p>
|
||||||
|
<p>Actual content structure is completely open: each toochain type will define its own format and semantics.</p>
|
||||||
|
<p>In general, this is a properties format: <code><name>value</name></code> with
|
||||||
|
predefined properties names.</p>
|
||||||
|
]]></description>
|
||||||
</field>
|
</field>
|
||||||
<field>
|
<field>
|
||||||
<name>configuration</name>
|
<name>configuration</name>
|
||||||
<version>1.0.0+</version>
|
<version>1.0.0+</version>
|
||||||
<type>DOM</type>
|
<type>DOM</type>
|
||||||
|
<description>
|
||||||
|
<![CDATA[
|
||||||
|
<p>Toolchain configuration information, like location or any information that is to be retrieved.</p>
|
||||||
|
<p>Actual content structure is completely open: each toochain type will define its own format and semantics.</p>
|
||||||
|
<p>In general, this is a properties format: <code><name>value</name></code> wih
|
||||||
|
predefined properties names.</p>
|
||||||
|
]]></description>
|
||||||
</field>
|
</field>
|
||||||
</fields>
|
</fields>
|
||||||
</class>
|
</class>
|
||||||
|
|
Loading…
Reference in New Issue