List<File> (@NotNull MavenDistribution distribution) { if (!distribution.isValid()) { MavenLog.LOG.warn("Maven Distribution " + distribution + " is not valid"); throw new IllegalArgumentException("Maven distribution at" + distribution.getMavenHome().toAbsolutePath() + " is not valid"); } MavenVersionAwareSupportExtension extension = MavenVersionSupportUtil.getExtensionFor(distribution); if (extension == null) { if (StringUtil.compareVersionNumbers(distribution.getVersion(), "3") < 0) { throw new BuildIssueException(new InstallMaven2BuildIssue()); } throw new IllegalStateException("Maven distribution at" + distribution.getMavenHome().toAbsolutePath() + " is not supported"); } MavenLog.LOG.info("Using extension " + extension + " to start MavenServer"); return extension.collectClassPathAndLibsFolder(distribution); }