org.apache.maven
Interface ProjectDependenciesResolver

All Known Implementing Classes:
DefaultProjectDependenciesResolver

public interface ProjectDependenciesResolver


Method Summary
 Set<Artifact> resolve(Collection<? extends MavenProject> projects, Collection<String> scopes, MavenSession session)
          Resolves the transitive dependencies of the specified projects.
 Set<Artifact> resolve(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session)
          Resolves the transitive dependencies of the specified project.
 Set<Artifact> resolve(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, Set<Artifact> ignoreableArtifacts)
          Resolves the transitive dependencies of the specified project.
 Set<Artifact> resolve(MavenProject project, Collection<String> scopesToResolve, MavenSession session)
          Resolves the transitive dependencies of the specified project.
 

Method Detail

resolve

Set<Artifact> resolve(MavenProject project,
                      Collection<String> scopesToResolve,
                      MavenSession session)
                      throws ArtifactResolutionException,
                             ArtifactNotFoundException
Resolves the transitive dependencies of the specified project.

Parameters:
project - The project whose dependencies should be resolved, must not be null.
scopesToResolve - The dependency scopes that should be resolved, may be null.
session - The current build session, must not be null.
Returns:
The transitive dependencies of the specified project that match the requested scopes, never null.
Throws:
ArtifactResolutionException
ArtifactNotFoundException

resolve

Set<Artifact> resolve(MavenProject project,
                      Collection<String> scopesToCollect,
                      Collection<String> scopesToResolve,
                      MavenSession session)
                      throws ArtifactResolutionException,
                             ArtifactNotFoundException
Resolves the transitive dependencies of the specified project.

Parameters:
project - The project whose dependencies should be resolved, must not be null.
scopesToCollect - The dependency scopes that should be collected, may be null.
scopesToResolve - The dependency scopes that should be collected and also resolved, may be null.
session - The current build session, must not be null.
Returns:
The transitive dependencies of the specified project that match the requested scopes, never null.
Throws:
ArtifactResolutionException
ArtifactNotFoundException

resolve

Set<Artifact> resolve(MavenProject project,
                      Collection<String> scopesToCollect,
                      Collection<String> scopesToResolve,
                      MavenSession session,
                      Set<Artifact> ignoreableArtifacts)
                      throws ArtifactResolutionException,
                             ArtifactNotFoundException
Resolves the transitive dependencies of the specified project.

Parameters:
project - The project whose dependencies should be resolved, must not be null.
scopesToCollect - The dependency scopes that should be collected, may be null.
scopesToResolve - The dependency scopes that should be collected and also resolved, may be null.
session - The current build session, must not be null.
ignoreableArtifacts - Artifacts that need not be resolved
Returns:
The transitive dependencies of the specified project that match the requested scopes, never null.
Throws:
ArtifactResolutionException
ArtifactNotFoundException

resolve

Set<Artifact> resolve(Collection<? extends MavenProject> projects,
                      Collection<String> scopes,
                      MavenSession session)
                      throws ArtifactResolutionException,
                             ArtifactNotFoundException
Resolves the transitive dependencies of the specified projects. Note that dependencies which can't be resolved from any repository but are present among the set of specified projects will not cause an exception. Instead, those unresolved artifacts will be returned in the result set, allowing the caller to take special care of artifacts that haven't been build yet.

Parameters:
projects - The projects whose dependencies should be resolved, may be null.
scopes - The dependency scopes that should be resolved, may be null.
session - The current build session, must not be null.
Returns:
The transitive dependencies of the specified projects that match the requested scopes, never null .
Throws:
ArtifactResolutionException
ArtifactNotFoundException


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.