org.apache.maven.plugin.assembly.artifact
Interface DependencyResolver
- All Known Implementing Classes:
- DefaultDependencyResolver
public interface DependencyResolver
Convenience component that aids in the resolution of dependency artifacts, according to various configurations such
as transitivity flag and scope.
- Version:
- $Id: DependencyResolver.java 999612 2010-09-21 20:34:50Z jdcasey $
resolve
void resolve(Assembly assembly,
AssemblerConfigurationSource configSource,
AssemblyContext context)
throws DependencyResolutionException
- Resolve the project dependencies, according to the supplied configuration.
- Parameters:
project
- The project whose dependencies should be resolvedscope
- The dependency scope to resolvemanagedVersions
- The map of managed versions, which allows dependency version conflict resolution to happen once for
the entire assembly process.localRepository
- The local repository which acts as a local cache for remote artifact repositoriesremoteRepositories
- The list of remote ArtifactRepository
instances to use during resolution, in addition to those
defined in the supplied MavenProject
instance.resolveTransitively
- If true, resolve project dependencies transitively; if false, only resolve the project's direct
dependencies.
- Throws:
DependencyResolutionException
Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.