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

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


The following commit(s) were added to refs/heads/master by this push:
     new aaec521  Fix env property example in JDK discovery docs (#186)
aaec521 is described below

commit aaec521ffc0a78c259749fd32bd51aa634898fc8
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Mon Nov 2 15:16:39 2026 +0000

    Fix env property example in JDK discovery docs (#186)
    
    * Fix env property example in JDK discovery docs
    
    The example for selecting a toolchain by environment variable used
    <toolchain.jdk.version>JAVA17_HOME</toolchain.jdk.version> but this
    should be <toolchain.jdk.env>. Also fix the malformed XML closing tag.
    
    * end-tag
---
 src/site/markdown/toolchains/jdk-discovery.md.vm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/site/markdown/toolchains/jdk-discovery.md.vm 
b/src/site/markdown/toolchains/jdk-discovery.md.vm
index 2bff417..617eeff 100644
--- a/src/site/markdown/toolchains/jdk-discovery.md.vm
+++ b/src/site/markdown/toolchains/jdk-discovery.md.vm
@@ -63,7 +63,7 @@ The `select-jdk-toolchain` goal finds a matching JDK. The 
config below selects a
 ```xml
 <properties>
   <toolchain.jdk.version>[17,)</toolchain.jdk.version>
-<properties>
+</properties>
 
 <plugin>
   <groupId>org.apache.maven.plugins</groupId>
@@ -83,8 +83,8 @@ If you use environment variables to configure your JDKs, you 
can use the followi
 
 ```xml
 <properties>
-  <toolchain.jdk.version>JAVA17_HOME</toolchain.jdk.version>
-<properties>
+  <toolchain.jdk.env>JAVA17_HOME</toolchain.jdk.env>
+</properties>
 ```
 
 You can also do everything only at CLI level, without modifying your `pom.xml`

Reply via email to