Class DefaultDependencyResolver
java.lang.Object
org.apache.maven.shared.transfer.dependencies.resolve.internal.DefaultDependencyResolver
- All Implemented Interfaces:
DependencyResolver,org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
@Component(role=DependencyResolver.class,
hint="default")
class DefaultDependencyResolver
extends Object
implements DependencyResolver, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextualize(org.codehaus.plexus.context.Context context) Injects the Plexus content.private MavenDependencyResolvergetMavenDependencyResolver(org.apache.maven.project.ProjectBuildingRequest buildingRequest) private booleanresolveDependencies(org.apache.maven.project.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) resolveDependencies(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.model.Model model, org.apache.maven.shared.artifact.filter.resolve.TransformableFilter filter) This will resolve the dependencies of the coordinate, not resolving the the artifact of the coordinate itself.resolveDependencies(org.apache.maven.project.ProjectBuildingRequest buildingRequest, DependableCoordinate coordinate, org.apache.maven.shared.artifact.filter.resolve.TransformableFilter filter) This will resolve the dependencies of the coordinate, not resolving the the artifact of the coordinate itself.private voidvalidateBuildingRequest(org.apache.maven.project.ProjectBuildingRequest buildingRequest) private voidvalidateParameters(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.model.Model model) private voidvalidateParameters(org.apache.maven.project.ProjectBuildingRequest buildingRequest, DependableCoordinate coordinate)
-
Field Details
-
container
private org.codehaus.plexus.PlexusContainer container
-
-
Constructor Details
-
DefaultDependencyResolver
DefaultDependencyResolver()
-
-
Method Details
-
isMaven31
private boolean isMaven31()- Returns:
- true if the current Maven version is Maven 3.1.
-
contextualize
public void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException Injects the Plexus content.- Specified by:
contextualizein interfaceorg.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable- Parameters:
context- Plexus context to inject.- Throws:
org.codehaus.plexus.context.ContextException- if the PlexusContainer could not be located.
-
validateParameters
private void validateParameters(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.model.Model model) -
getMavenDependencyResolver
private MavenDependencyResolver getMavenDependencyResolver(org.apache.maven.project.ProjectBuildingRequest buildingRequest) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException, DependencyResolverException - Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDependencyResolverException
-
validateBuildingRequest
private void validateBuildingRequest(org.apache.maven.project.ProjectBuildingRequest buildingRequest)