Interface DependencyResolver
-
- All Known Implementing Classes:
DefaultDependencyResolver
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
-ProjectBuildingRequest
coordinate
-DependableCoordinate
filter
-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
-ProjectBuildingRequest
model
-Model
filter
-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, nevernull
dependencies
- the dependencies to resolve, can benull
managedDependencies
- managed dependencies, can benull
filter
- a filter, can benull
- Returns:
- the resolved dependencies.
- Throws:
DependencyResolverException
- in case of an error.
-
-