Package org.apache.maven.project
Class ProjectModelResolver
java.lang.Object
org.apache.maven.project.ProjectModelResolver
- All Implemented Interfaces:
ModelResolver
A model resolver to assist building of projects. This resolver gives priority to those repositories that have been
declared in the POM.
-
Constructor Summary
ConstructorDescriptionProjectModelResolver
(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.RequestTrace trace, org.eclipse.aether.RepositorySystem resolver, org.eclipse.aether.impl.RemoteRepositoryManager remoteRepositoryManager, List<org.eclipse.aether.repository.RemoteRepository> repositories, ProjectBuildingRequest.RepositoryMerging repositoryMerging, org.apache.maven.project.ReactorModelPool modelPool, Map<String, Object> parentCache) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRepository
(org.apache.maven.api.model.Repository repository) void
addRepository
(org.apache.maven.api.model.Repository repository, boolean replace) void
addRepository
(Repository repository) void
addRepository
(Repository repository, boolean replace) newCopy()
resolveModel
(String groupId, String artifactId, String version) resolveModel
(org.apache.maven.api.model.Dependency dependency, AtomicReference<org.apache.maven.api.model.Dependency> modified) resolveModel
(org.apache.maven.api.model.Parent parent, AtomicReference<org.apache.maven.api.model.Parent> modified) resolveModel
(Dependency dependency) resolveModel
(Parent parent)
-
Constructor Details
-
ProjectModelResolver
public ProjectModelResolver(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.RequestTrace trace, org.eclipse.aether.RepositorySystem resolver, org.eclipse.aether.impl.RemoteRepositoryManager remoteRepositoryManager, List<org.eclipse.aether.repository.RemoteRepository> repositories, ProjectBuildingRequest.RepositoryMerging repositoryMerging, org.apache.maven.project.ReactorModelPool modelPool, Map<String, Object> parentCache)
-
-
Method Details
-
addRepository
public void addRepository(org.apache.maven.api.model.Repository repository) throws InvalidRepositoryException - Specified by:
addRepository
in interfaceModelResolver
- Throws:
InvalidRepositoryException
-
addRepository
public void addRepository(org.apache.maven.api.model.Repository repository, boolean replace) throws InvalidRepositoryException - Specified by:
addRepository
in interfaceModelResolver
- Throws:
InvalidRepositoryException
-
newCopy
- Specified by:
newCopy
in interfaceModelResolver
-
resolveModel
public ModelSource resolveModel(String groupId, String artifactId, String version) throws UnresolvableModelException - Specified by:
resolveModel
in interfaceModelResolver
- Throws:
UnresolvableModelException
-
resolveModel
public ModelSource resolveModel(org.apache.maven.api.model.Parent parent, AtomicReference<org.apache.maven.api.model.Parent> modified) throws UnresolvableModelException - Specified by:
resolveModel
in interfaceModelResolver
- Throws:
UnresolvableModelException
-
resolveModel
public ModelSource resolveModel(org.apache.maven.api.model.Dependency dependency, AtomicReference<org.apache.maven.api.model.Dependency> modified) throws UnresolvableModelException - Specified by:
resolveModel
in interfaceModelResolver
- Throws:
UnresolvableModelException
-
resolveModel
- Specified by:
resolveModel
in interfaceModelResolver
- Throws:
UnresolvableModelException
-
resolveModel
- Specified by:
resolveModel
in interfaceModelResolver
- Throws:
UnresolvableModelException
-
addRepository
- Specified by:
addRepository
in interfaceModelResolver
- Throws:
InvalidRepositoryException
-
addRepository
- Specified by:
addRepository
in interfaceModelResolver
- Throws:
InvalidRepositoryException
-