ProjectBuildingRequest projectBuildingRequest =
new DefaultProjectBuildingRequest( session.getProjectBuildingRequest() );
projectBuildingRequest.setLocalRepository( localRepository );
projectBuildingRequest.setRemoteRepositories( remoteArtifactRepositories );
ProjectBuildingResult result = projectBuilder.build( f, projectBuildingRequest );
modified = updateExcludesInDeps( result.getProject(), dependencies, transitiveDeps );
}
project.setFile( dependencyReducedPomLocation );
}
}