void (ProjectBuilder builder, List<ProjectBuildingResult> buildingResults, ProjectBuildingRequest projectBuildingRequest, File pomFile) { try { ProjectBuildingResult build = builder.build(pomFile, projectBuildingRequest); buildingResults.add(build); } catch (ProjectBuildingException e) { Maven40ResolverUtil.handleProjectBuildingException(buildingResults, e); } }