You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2024/03/02 16:50:02 UTC
(maven-toolchains-plugin) branch master updated: fix apt format #18
This is an automated email from the ASF dual-hosted git repository.
hboutemy 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 8508a51 fix apt format #18
8508a51 is described below
commit 8508a515f8b7c2ff4da73e2b7a2aefaa6eff8688
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sat Mar 2 17:49:55 2024 +0100
fix apt format #18
---
src/site/apt/toolchains/jdk.apt.vm | 31 ++++++++++++++-----------------
1 file changed, 14 insertions(+), 17 deletions(-)
diff --git a/src/site/apt/toolchains/jdk.apt.vm b/src/site/apt/toolchains/jdk.apt.vm
index 246b7bd..7d48109 100644
--- a/src/site/apt/toolchains/jdk.apt.vm
+++ b/src/site/apt/toolchains/jdk.apt.vm
@@ -62,16 +62,15 @@ JDK Toolchain
</toolchains>
+---+
-This defines a toolchain with version 11, vendor "temurin", and purpose "for_mevenide".
-A project can request this toolchain by specifying the type "jdk" and the version "11".
-It can also use a version range that includes 11 like [8, 17]. It can also ask for the
-vendor temurin, with or without version, or the purpose "for_mevenide".
+ This defines a toolchain with version 11, vendor "temurin", and purpose "for_mevenide".
+ A project can request this toolchain by specifying the type "jdk" and the version "11".
+ It can also use a version range that includes 11 like [8, 17]. It can also ask for the
+ vendor temurin, with or without version, or the purpose "for_mevenide".
* Toolchains Plugin Configuration
-
-A project specifies a toolchain in the configuraiton of the maven-toolchains-plugin like so:
+ A project specifies a toolchain in the configuraiton of the maven-toolchains-plugin like so:
+---+
<project>
@@ -103,9 +102,9 @@ A project specifies a toolchain in the configuraiton of the maven-toolchains-plu
</project>
+---+
-In this example, the project is requesting any toolchain with type jdk that has a version of 1.8 or greater.
- "<<<version>>>" accepts any {{{/enforcer/enforcer-rules/versionRanges.html}version range definitions}}.
-If you want exactly JDK 1.8 from the vendor temurin, the plugin would be configured like this:
+ In this example, the project is requesting any toolchain with type jdk that has a version of 1.8 or greater.
+ "<<<version>>>" accepts any {{{/enforcer/enforcer-rules/versionRanges.html}version range definitions}}.
+ If you want exactly JDK 1.8 from the vendor temurin, the plugin would be configured like this:
+---+
<configuration>
@@ -118,12 +117,10 @@ If you want exactly JDK 1.8 from the vendor temurin, the plugin would be configu
</configuration>
+---+
-Aside from version, the definitions are opaque strings. Maven looks in toolchains.xml
-for a toolchain that provides version=="1.8" and vendor=="temurin". It does not know or care
-what these strings mean. It does not, for instance, concern itself with whether the jdkHome configured
-by the toolchain that satisfies version=="1.8" and vendor=="temurin" is JDK 8 from the Temurin project,
-or JDK 21 from Oracle. It might not even exist.
-
-
-All conditions need to be satisfied to find a toolchain.
+ Aside from version, the definitions are opaque strings. Maven looks in toolchains.xml
+ for a toolchain that provides version=="1.8" and vendor=="temurin". It does not know or care
+ what these strings mean. It does not, for instance, concern itself with whether the jdkHome configured
+ by the toolchain that satisfies version=="1.8" and vendor=="temurin" is JDK 8 from the Temurin project,
+ or JDK 21 from Oracle. It might not even exist.
+ All conditions need to be satisfied to find a toolchain.