public interface ProjectDependenciesResolver
MavenProject
instances.Modifier and Type | Method and Description |
---|---|
Set<Artifact> |
resolve(Collection<? extends MavenProject> projects,
Collection<String> scopes,
MavenSession session)
Resolve the dependencies for a collection of
MavenProject instances, using a common
set of remote repositories and a common set of scopes. |
Set<Artifact> |
resolve(MavenProject project,
Collection<String> scopes,
MavenSession session)
Resolve the dependencies for a single
MavenProject instance, using the supplied
set of remote repositories and scopes. |
Set<Artifact> resolve(Collection<? extends MavenProject> projects, Collection<String> scopes, MavenSession session) throws ArtifactResolutionException, ArtifactNotFoundException
MavenProject
instances, using a common
set of remote repositories and a common set of scopes.projects
- The projects whose dependencies should be resolved.scopes
- The list of scopes to resolve. These scopes may imply other scopes.session
- Contains the local repository, along with other settings related to artifact resolution.ArtifactResolutionException
- In case Artifact
instances cannot be created from
project model.Dependency
instances, or artifact resolution fails.ArtifactNotFoundException
- In cases where one or more dependency artifacts cannot be found in the
various repositories.Set<Artifact> resolve(MavenProject project, Collection<String> scopes, MavenSession session) throws ArtifactResolutionException, ArtifactNotFoundException
MavenProject
instance, using the supplied
set of remote repositories and scopes.project
- The project whose dependencies should be resolved.scopes
- The list of scopes to resolve. These scopes may imply other scopes.session
- Contains the local repository, along with other settings related to artifact resolution.ArtifactResolutionException
- In case Artifact
instances cannot be created from the
project model.Dependency
instance, or artifact resolution fails.ArtifactNotFoundException
- In cases where one or more dependency artifacts cannot be found in the
various repositories.Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.