@Component(role=DependencyResolver.class, hint="default") public class DefaultDependencyResolver extends Object implements DependencyResolver, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Constructor and Description |
---|
DefaultDependencyResolver() |
public Iterable<ArtifactResult> resolveDependencies(ProjectBuildingRequest buildingRequest, Collection<org.apache.maven.model.Dependency> coordinates, Collection<org.apache.maven.model.Dependency> managedDependencies, org.apache.maven.shared.artifact.filter.resolve.TransformableFilter filter) throws DependencyResolverException
resolveDependencies
in interface DependencyResolver
buildingRequest
- the project building request, never null
coordinates
- the dependencies to resolve, can be null
managedDependencies
- managed dependencies, can be null
filter
- a filter, can be null
DependencyResolverException
- in case of an error.public Iterable<ArtifactResult> resolveDependencies(ProjectBuildingRequest buildingRequest, DependableCoordinate coordinate, org.apache.maven.shared.artifact.filter.resolve.TransformableFilter filter) throws DependencyResolverException
DependencyResolver
DependencyResolver.resolveDependencies(ProjectBuildingRequest, Collection, Collection, TransformableFilter)
passing
Collections.singletonList(coordinate)
resolveDependencies
in interface DependencyResolver
buildingRequest
- ProjectBuildingRequest
coordinate
- DependableCoordinate
filter
- TransformableFilter
DependencyResolverException
- in case of an error.public Iterable<ArtifactResult> resolveDependencies(ProjectBuildingRequest buildingRequest, org.apache.maven.model.Model model, org.apache.maven.shared.artifact.filter.resolve.TransformableFilter filter) throws DependencyResolverException
DependencyResolver
DependencyResolver.resolveDependencies(ProjectBuildingRequest, Collection, Collection, TransformableFilter)
passing
Collections.singletonList(coordinate)
resolveDependencies
in interface DependencyResolver
buildingRequest
- ProjectBuildingRequest
model
- Model
filter
- TransformableFilter
DependencyResolverException
- in case of an error.protected static boolean isMaven31()
public void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException
contextualize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
context
- Plexus context to inject.org.codehaus.plexus.context.ContextException
- if the PlexusContainer could not be located.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.