Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/site/apt/toolchains/jdk.apt.vm
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,9 @@ JDK Toolchain
</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. JDK toolchain only checks that directory exists.
Aside from version, the values of <<<\<provides\>>>> elements are treated as opaque strings.
Maven looks in <<<toolchains.xml>>> for a toolchain that provides version=="1.8" and vendor=="temurin".
It does not interpret these strings semantically. For example, it does not validate that the jdkHome
directory actually contains a JDK matching the declared version and vendor.

All conditions need to be satisfied to find a toolchain.
Loading