From 98ada5558a58653f9c3e8ce29a57ee60da127f38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Boutemy?= Date: Thu, 29 Feb 2024 08:59:30 +0100 Subject: [PATCH] improve menu --- src/site/apt/index.apt.vm | 4 ++-- src/site/apt/toolchains/custom.apt | 4 ++-- src/site/site.xml | 15 ++++++++------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/site/apt/index.apt.vm b/src/site/apt/index.apt.vm index c38055a..95b810e 100644 --- a/src/site/apt/index.apt.vm +++ b/src/site/apt/index.apt.vm @@ -26,14 +26,14 @@ ${project.name} The Toolchains Plugins enables sharing configuration across plugins, - for example to make sure the plugins like compiler, surefire, javadoc, webstart etc. all use the same JDK for execution. + for example to make sure the plugins like compiler, surefire, javadoc, webstart etc. all use the same JDK for execution independently from JRE used to run Maven itself. Similarly to the maven-enforcer-plugin, it allows you to control environmental constraints in the build. * Goals Overview The Toolchains plugin has one goal: - * {{{./toolchain-mojo.html}toolchains:toolchain}} checks that toolchains requirements are met by currently configured toolchains. + * {{{./toolchain-mojo.html}toolchains:toolchain}} selects a toolchain based on configured requirements and stores it in build context for later retrieval by other plugins. * Usage diff --git a/src/site/apt/toolchains/custom.apt b/src/site/apt/toolchains/custom.apt index 70046f9..ce1dd07 100644 --- a/src/site/apt/toolchains/custom.apt +++ b/src/site/apt/toolchains/custom.apt @@ -38,7 +38,7 @@ Custom Toolchains Following instructions are explanations of key points of the sample. -* Creating Custom Toolchain +* Creating a Custom Toolchain A toolchain consists in: @@ -67,7 +67,7 @@ Custom Toolchains @Component private ToolchainManager toolchainManager; - @Parameter( defaultValue = "${session}", required = true, readonly = true ) + @Component private MavenSession session; public void execute() diff --git a/src/site/site.xml b/src/site/site.xml index 9ddf361..36f6f0f 100644 --- a/src/site/site.xml +++ b/src/site/site.xml @@ -25,17 +25,18 @@ under the License. - - + + + + + + + + - - - - -