@Component(role=ProjectBuildingHelper.class) public class DefaultProjectBuildingHelper extends Object implements ProjectBuildingHelper
| Constructor and Description | 
|---|
| DefaultProjectBuildingHelper() | 
| Modifier and Type | Method and Description | 
|---|---|
| List<ArtifactRepository> | createArtifactRepositories(List<Repository> pomRepositories,
                          List<ArtifactRepository> externalRepositories,
                          ProjectBuildingRequest request)Creates the effective artifact repositories from the specified POM repositories. | 
| ProjectRealmCache.CacheRecord | createProjectRealm(MavenProject project,
                  Model model,
                  ProjectBuildingRequest request)Creates the project realm that hosts the build extensions of the specified model. | 
| void | selectProjectRealm(MavenProject project)Updates the context class loader such that the container will search the project realm when the model builder
 injects the lifecycle bindings from the packaging in the next step. | 
public List<ArtifactRepository> createArtifactRepositories(List<Repository> pomRepositories, List<ArtifactRepository> externalRepositories, ProjectBuildingRequest request) throws InvalidRepositoryException
ProjectBuildingHelpercreateArtifactRepositories in interface ProjectBuildingHelperpomRepositories - The POM repositories to create the artifact repositories from, must not be null.externalRepositories - The external (and already mirrored) repositories to merge into the result list, may
            be null.request - The project building request holding further settings like repository settings, must not be
            null.null.InvalidRepositoryExceptionpublic ProjectRealmCache.CacheRecord createProjectRealm(MavenProject project, Model model, ProjectBuildingRequest request) throws PluginResolutionException, PluginVersionResolutionException, PluginManagerException
ProjectBuildingHelpercreateProjectRealm in interface ProjectBuildingHelperproject - The project to create the project realm for, must not be nullmodel - The model to create the project realm for, must not be nullrequest - The project building request holding further settings like repository settings, must not be
            null.null.PluginResolutionException - If any build extension could not be resolved.PluginVersionResolutionExceptionPluginManagerExceptionpublic void selectProjectRealm(MavenProject project)
ProjectBuildingHelperselectProjectRealm in interface ProjectBuildingHelperproject - The project whose class realm should be selected, must not be null.Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.