public class ProjectModelResolver extends Object implements ModelResolver
Constructor and Description |
---|
ProjectModelResolver(RepositorySystemSession session,
RequestTrace trace,
RepositorySystem resolver,
RemoteRepositoryManager remoteRepositoryManager,
List<RemoteRepository> repositories,
ProjectBuildingRequest.RepositoryMerging repositoryMerging,
org.apache.maven.project.ReactorModelPool modelPool) |
Modifier and Type | Method and Description |
---|---|
void |
addRepository(Repository repository) |
void |
addRepository(Repository repository,
boolean replace) |
ModelResolver |
newCopy() |
ModelSource |
resolveModel(Dependency dependency) |
ModelSource |
resolveModel(Parent parent) |
ModelSource |
resolveModel(String groupId,
String artifactId,
String version) |
public ProjectModelResolver(RepositorySystemSession session, RequestTrace trace, RepositorySystem resolver, RemoteRepositoryManager remoteRepositoryManager, List<RemoteRepository> repositories, ProjectBuildingRequest.RepositoryMerging repositoryMerging, org.apache.maven.project.ReactorModelPool modelPool)
public void addRepository(Repository repository) throws InvalidRepositoryException
addRepository
in interface ModelResolver
InvalidRepositoryException
public void addRepository(Repository repository, boolean replace) throws InvalidRepositoryException
addRepository
in interface ModelResolver
InvalidRepositoryException
public ModelResolver newCopy()
newCopy
in interface ModelResolver
public ModelSource resolveModel(String groupId, String artifactId, String version) throws UnresolvableModelException
resolveModel
in interface ModelResolver
UnresolvableModelException
public ModelSource resolveModel(Parent parent) throws UnresolvableModelException
resolveModel
in interface ModelResolver
UnresolvableModelException
public ModelSource resolveModel(Dependency dependency) throws UnresolvableModelException
resolveModel
in interface ModelResolver
UnresolvableModelException
Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.