MavenArtifactResolveResult ( @NotNull ArrayList<MavenArtifactInfo> artifacts, @NotNull ArrayList<MavenRemoteRepository> remoteRepositories, MavenToken token) { MavenServerUtil.checkToken(token); try { return resolveArtifactsTransitively(artifacts, remoteRepositories); } catch (Throwable e) { MavenServerGlobals.getLogger().error(e); Artifact transferArtifact = getProblemTransferArtifact(e); String message = getRootMessage(e); MavenProjectProblem problem; if (transferArtifact != null) { MavenArtifact mavenArtifact = Maven40ModelConverter.convertArtifact(transferArtifact, getLocalRepositoryFile()); problem = MavenProjectProblem.createRepositoryProblem("", message, true, mavenArtifact); } else { problem = MavenProjectProblem.createStructureProblem("", message); } return new MavenArtifactResolveResult(Collections.emptyList(), problem); } }