Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove references to old Maven versions. #194

Merged
merged 2 commits into from
Jun 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/site/apt/examples/module-info.apt.vm
Original file line number Diff line number Diff line change
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