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.
- Author:
- Benjamin Bentmann
-
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) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRepository
(Repository repository) void
addRepository
(Repository repository, boolean replace) newCopy()
resolveModel
(String groupId, String artifactId, String version) 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)
-
-
Method Details
-
addRepository
- Specified by:
addRepository
in interfaceModelResolver
- Throws:
InvalidRepositoryException
-
addRepository
- 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
- Specified by:
resolveModel
in interfaceModelResolver
- Throws:
UnresolvableModelException
-
resolveModel
- Specified by:
resolveModel
in interfaceModelResolver
- Throws:
UnresolvableModelException
-