Skip to content

Commit

Permalink
Remove references to old Maven versions. (#194)
Browse files Browse the repository at this point in the history
* Remove references to old Maven versions. In 2023 assume everyone is on 3.3.1 or later.
  • Loading branch information
elharo committed Jun 20, 2023
1 parent 92c51bb commit ae3a423
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/site/apt/examples/module-info.apt.vm
Expand Up @@ -54,8 +54,8 @@ Older projects with module-info
In case you want the project to be Java 6, 7 or 8 compatible, you can simply use JDK 9 for both execution blocks.

The easiest way is to use Java 9 as the runtime for Maven, by setting <<<JAVA_HOME=/path/to/jdk-9>>> before running <<<mvn>>>.
But if you want to use an older Java runtime for Maven, you can use the maven-toolchain-plugin to specify the shared JDK (supported since Maven 2.0.9)
or a custom jdkToolchain (supported since Maven 3.3.1) and refer to the JDK 9 installation on your system.
But if you want to use an older Java runtime for Maven, you can use the maven-toolchain-plugin to specify the shared JDK
or a custom jdkToolchain and refer to the JDK 9 installation on your system.

+-------
<project>
Expand Down Expand Up @@ -106,10 +106,9 @@ Older projects with module-info

* Java 5 or below Compatibility

Given Maven 3 requires newer Java release at runtime, you'll absolutely need to use Toolchains to use a JDK different from
Given that Maven 3 requires newer Java release at runtime, you'll absolutely need to use Toolchains to use a JDK different from
Maven runtime.

Be aware that you will need at least Maven 3.3.1 to specify a custom jdkToolchain in your plugin configuration.
You could add a jdkToolchain to do base-compile execution-block as well referring to JDK 5.

+-------
Expand Down

0 comments on commit ae3a423

Please sign in to comment.