See gh-19995
This commit is contained in:
Johnny Lim
2020-02-01 00:00:26 +09:00
committed by Stephane Nicoll
parent afb67887da
commit e6d5f5a271
7 changed files with 13 additions and 29 deletions

View File

@@ -326,7 +326,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
/**
* Provides access to the java binary executable, regardless of OS.
* @return the java executable
**/
*/
protected String getJavaExecutable() {
Toolchain toolchain = this.toolchainManager.getToolchainFromBuildContext("jdk", this.session);
String javaExecutable = (toolchain != null) ? toolchain.findTool("java") : null;