TargetEnvironmentRequest () { try { JavaParameters parameters = getJavaParameters(); WslTargetEnvironmentConfiguration config = checkCreateWslConfiguration(parameters.getJdk()); if (config == null || config.getDistribution() == null) { return null; } MavenDistribution mavenDistribution = MavenDistributionsCache.getInstance(myConfiguration.getProject()).getMavenDistribution(myConfiguration.getRunnerParameters() .getWorkingDirPath()); String mavenHome = StringUtil.notNullize(config.getDistribution().getWslPath(mavenDistribution.getMavenHome())); String mavenVersion = StringUtil.notNullize(mavenDistribution.getVersion()); MavenRuntimeTargetConfiguration mavenConfig = new MavenRuntimeTargetConfiguration(); mavenConfig.setHomePath(mavenHome); mavenConfig.setVersionString(mavenVersion); config.addLanguageRuntime(mavenConfig); return new WslTargetEnvironmentRequest(config); } catch (ExecutionException e) { // ignore } return null; }