public final class DefaultProjectDependenciesResolver extends Object implements ProjectDependenciesResolver
ProjectDependenciesResolver
. Warning: This is an internal utility
class that is only public for technical reasons, it is not part of the public API. In particular, this class can
be changed or deleted without prior notice.ProjectDependenciesResolver
|
Constructor and Description |
---|
DefaultProjectDependenciesResolver() |
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. |
public 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.resolve
in interface ProjectDependenciesResolver
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.public Set<Artifact> resolve(MavenProject project, Collection<String> scopes, MavenSession session) throws ArtifactResolutionException, ArtifactNotFoundException
MavenProject
instance, using the supplied
set of remote repositories and scopes.resolve
in interface ProjectDependenciesResolver
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.