Sdk (Project project, MavenWorkspaceSettings settings) { String jdkForImporterName = settings.getImportingSettings().getJdkForImporter(); Sdk jdk; try { jdk = MavenUtil.getJdk(project, jdkForImporterName); } catch (ExternalSystemJdkException e) { jdk = MavenUtil.getJdk(project, MavenRunnerSettings.USE_PROJECT_JDK); MavenProjectsManager.getInstance(project).getSyncConsole().addWarning(SyncBundle.message("importing.jdk.changed"), SyncBundle.message("importing.jdk.changed.description", jdkForImporterName, jdk.getName()) ); } if (JavaSdkVersionUtil.isAtLeast(jdk, JavaSdkVersion.JDK_1_8)) { return jdk; } else { MavenLog.LOG.info("Selected jdk [" + jdk.getName() + "] is not JDK1.8+ Will use internal jdk instead"); return JavaAwareProjectJdkTableImpl.getInstanceEx().getInternalJdk(); } }