MavenGoalExecutionResult (@NotNull MavenGoalExecutionRequest request, @NotNull String goal) { File file = request.file(); MavenExplicitProfiles profiles = request.profiles(); List<String> activeProfiles = new ArrayList<>(profiles.getEnabledProfiles()); List<String> inactiveProfiles = new ArrayList<>(profiles.getDisabledProfiles()); MavenExecutionRequest mavenExecutionRequest = createRequest(file, activeProfiles, inactiveProfiles); mavenExecutionRequest.setGoals(Collections.singletonList(goal)); MavenExecutionResult executionResult = safeExecute(mavenExecutionRequest, getComponent(Maven.class)); Maven3ExecutionResult result = new Maven3ExecutionResult(executionResult.getProject(), filterExceptions(executionResult.getExceptions())); return createEmbedderExecutionResult(file, result); }