This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-site.git


The following commit(s) were added to refs/heads/master by this push:
     new ba4da7fd Say that a single toolchain version must match exactly
ba4da7fd is described below

commit ba4da7fda4e72638579d374201931bb6e01a574b
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Mon Nov 2 13:17:13 2026 +0000

    Say that a single toolchain version must match exactly
---
 content/markdown/guides/mini/guide-using-toolchains.md | 1 +
 1 file changed, 1 insertion(+)

diff --git a/content/markdown/guides/mini/guide-using-toolchains.md 
b/content/markdown/guides/mini/guide-using-toolchains.md
index 381b40a5..799838ff 100644
--- a/content/markdown/guides/mini/guide-using-toolchains.md
+++ b/content/markdown/guides/mini/guide-using-toolchains.md
@@ -143,6 +143,7 @@ The toolchain type id for JDK is `jdk`.
 Predefined `<provides>` identification tokens, for requirement matching in 
plugin configuration, are:
 
 - `version` marks the version of the JDK in `toolchains.xml`. In the plugin 
configuration, this can be either a single version or a [version 
range](/enforcer/enforcer-rules/versionRanges.html).
+  A single version must equal the one in `toolchains.xml`: `17` does not match 
a toolchain that provides `17.0.20`, and neither `8` nor `1.8` matches 
`1.8.0_504`. To accept such toolchains, use a range like `[17,18)` or 
`[1.8,1.9)`.
 - Other tokens, such as `vendor`, are accepted, but only exact matches are 
supported.
 
 In `toolchains.xml`, the only child of the `<configuration>` element is 
`jdkHome`. It designates the root directory of a JDK installation.

Reply via email to