targetJdk defaulted to ${maven.compiler.source} only. A project that sets just maven.compiler.release, the usual setup since JDK 9, got no targetJdk: PMD parsed the code as the latest Java version and the plugin looked up no JDK toolchain for platform classes. targetJdk now falls back to maven.compiler.release, then to maven.compiler.source; an explicit targetJdk still wins. Release takes precedence over source, as in the Maven Compiler Plugin, so a project that sets both now analyses with its release value.
The Target JDK page now describes the new default instead of the <targetJdk>${maven.compiler.release}</targetJdk> workaround, and a separate commit fixes a typo in the warning for a toolchain without a java executable ("Could't").
Verified: with only maven.compiler.release set, 3.28.0 analyses as the latest Java and ignores the release; this branch looks up a JDK 17 toolchain for release 17 and, for release 8, rejects a Java 16 type pattern with "a feature of Java 16, you should select your language version accordingly". mvn -P run-its verify → unit tests and 26 ITs pass (4 skipped).