MavenGoalExecutionResult (@NotNull File file, Maven40ExecutionResult result) { Collection<MavenProjectProblem> problems = MavenProjectProblem.createProblemsList(); collectProblems(file, result.getExceptions(), result.getModelProblems(), problems); MavenGoalExecutionResult.Folders folders = new MavenGoalExecutionResult.Folders(); MavenProject mavenProject = result.getMavenProject(); if (mavenProject == null) return new MavenGoalExecutionResult(false, file, folders, problems); folders.setSources(mavenProject.getCompileSourceRoots()); folders.setTestSources(mavenProject.getTestCompileSourceRoots()); folders.setResources(Maven40ModelConverter.convertResources(mavenProject.getModel().getBuild().getResources())); folders.setTestResources(Maven40ModelConverter.convertResources(mavenProject.getModel().getBuild().getTestResources())); return new MavenGoalExecutionResult(true, file, folders, problems); }