Package org.apache.maven.project
Class DefaultProjectBuilder.ModelResolverWrapper
java.lang.Object
org.apache.maven.project.DefaultProjectBuilder.ModelResolverWrapper
- All Implemented Interfaces:
- Service,- ModelResolver
- Enclosing class:
- DefaultProjectBuilder
protected abstract class DefaultProjectBuilder.ModelResolverWrapper
extends Object
implements ModelResolver
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract ModelResolvergetResolver(List<org.eclipse.aether.repository.RemoteRepository> repositories) resolveModel(Session session, String groupId, String artifactId, String version, Consumer<String> resolved) resolveModel(Session session, Dependency dependency, AtomicReference<Dependency> modified) Tries to resolve the POM for the specified dependency coordinates possibly updatingdependency.resolveModel(Session session, Parent parent, AtomicReference<Parent> modified) Tries to resolve the POM for the specified parent coordinates possibly updatingparent.
- 
Constructor Details- 
ModelResolverWrapperprotected ModelResolverWrapper()
 
- 
- 
Method Details- 
getResolverprotected abstract ModelResolver getResolver(List<org.eclipse.aether.repository.RemoteRepository> repositories) 
- 
resolveModelpublic ModelSource resolveModel(Session session, String groupId, String artifactId, String version, Consumer<String> resolved) throws ModelResolverException - Specified by:
- resolveModelin interface- ModelResolver
- Throws:
- ModelResolverException
 
- 
resolveModelpublic ModelSource resolveModel(Session session, Parent parent, AtomicReference<Parent> modified) throws ModelResolverException Description copied from interface:ModelResolverTries to resolve the POM for the specified parent coordinates possibly updatingparent.- Specified by:
- resolveModelin interface- ModelResolver
- Parameters:
- session- The session to use to resolve the model, must not be- null.
- parent- The parent coordinates to resolve, must not be- null.
- modified- a holder for the updated parent, must not be- null.
- Returns:
- The source of the requested POM, never null.
- Throws:
- ModelResolverException- If the POM could not be resolved from any configured repository.
 
- 
resolveModelpublic ModelSource resolveModel(Session session, Dependency dependency, AtomicReference<Dependency> modified) throws ModelResolverException Description copied from interface:ModelResolverTries to resolve the POM for the specified dependency coordinates possibly updatingdependency.- Specified by:
- resolveModelin interface- ModelResolver
- Parameters:
- session- The session to use to resolve the model, must not be- null.
- dependency- The dependency coordinates to resolve, must not be- null.
- modified- a holder for the updated dependency, must not be- null.
- Returns:
- The source of the requested POM, never null.
- Throws:
- ModelResolverException- If the POM could not be resolved from any configured repository.
 
 
-