MavenServerResponse<ArrayList<MavenServerExecutionResult>> (@NotNull String longRunningTaskId, @NotNull ProjectResolutionRequest request, MavenToken token) { MavenServerUtil.checkToken(token); List<File> files = request.getPomFiles(); List<String> activeProfiles = request.getActiveProfiles(); List<String> inactiveProfiles = request.getInactiveProfiles(); MavenWorkspaceMap workspaceMap = request.getWorkspaceMap(); boolean updateSnapshots = myAlwaysUpdateSnapshots || request.updateSnapshots(); try (LongRunningTask task = newLongRunningTask(longRunningTaskId, files.size(), myConsoleWrapper)) { Maven40ProjectResolver projectResolver = new Maven40ProjectResolver( this, updateSnapshots, myImporterSpy, task.getIndicator(), workspaceMap, getLocalRepositoryFile(), request.getUserProperties(), canResolveDependenciesInParallel() ); try { customizeComponents(workspaceMap); ArrayList<MavenServerExecutionResult> result = projectResolver.resolveProjects(task, files, activeProfiles, inactiveProfiles); return new MavenServerResponse(result, getLongRunningTaskStatus(longRunningTaskId, token)); } finally { resetComponents(); } } }