Interface DependencyResolver
-
- All Known Implementing Classes:
DefaultDependencyResolver,Maven31DependencyResolver
public interface DependencyResolver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Iterable<ArtifactResult>resolveDependencies(org.apache.maven.project.ProjectBuildingRequest buildingRequest, java.util.Collection<org.apache.maven.model.Dependency> dependencies, java.util.Collection<org.apache.maven.model.Dependency> managedDependencies, org.apache.maven.shared.artifact.filter.resolve.TransformableFilter filter)java.lang.Iterable<ArtifactResult>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.java.lang.Iterable<ArtifactResult>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.
-
-
-
Method Detail
-
resolveDependencies
java.lang.Iterable<ArtifactResult> resolveDependencies(org.apache.maven.project.ProjectBuildingRequest buildingRequest, DependableCoordinate coordinate, org.apache.maven.shared.artifact.filter.resolve.TransformableFilter filter) throws DependencyResolverException
This will resolve the dependencies of the coordinate, not resolving the the artifact of the coordinate itself. If the coordinate needs to be resolved too, useresolveDependencies(ProjectBuildingRequest, Collection, Collection, TransformableFilter)passingCollections.singletonList(coordinate)- Parameters:
buildingRequest-ProjectBuildingRequestcoordinate-DependableCoordinatefilter-TransformableFilter(can benull).- Returns:
- the resolved dependencies.
- Throws:
DependencyResolverException- in case of an error.
-
resolveDependencies
java.lang.Iterable<ArtifactResult> resolveDependencies(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.model.Model model, org.apache.maven.shared.artifact.filter.resolve.TransformableFilter filter) throws DependencyResolverException
This will resolve the dependencies of the coordinate, not resolving the the artifact of the coordinate itself. If the coordinate needs to be resolved too, useresolveDependencies(ProjectBuildingRequest, Collection, Collection, TransformableFilter)passingCollections.singletonList(coordinate)- Parameters:
buildingRequest-ProjectBuildingRequestmodel-Modelfilter-TransformableFilter(can benull).- Returns:
- the resolved dependencies.
- Throws:
DependencyResolverException- in case of an error.
-
resolveDependencies
java.lang.Iterable<ArtifactResult> resolveDependencies(org.apache.maven.project.ProjectBuildingRequest buildingRequest, java.util.Collection<org.apache.maven.model.Dependency> dependencies, java.util.Collection<org.apache.maven.model.Dependency> managedDependencies, org.apache.maven.shared.artifact.filter.resolve.TransformableFilter filter) throws DependencyResolverException
- Parameters:
buildingRequest- the project building request, nevernulldependencies- the dependencies to resolve, can benullmanagedDependencies- managed dependencies, can benullfilter- a filter, can benull- Returns:
- the resolved dependencies.
- Throws:
DependencyResolverException- in case of an error.
-
-