|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DependencyResolver
Convenience component that aids in the resolution of dependency artifacts, according to various configurations such as transitivity flag and scope.
Method Summary | |
---|---|
Map |
buildManagedVersionMap(Assembly assembly,
AssemblerConfigurationSource configSource)
Traverse the assembly descriptor to determine which scopes, modules, etc. |
Set |
resolveDependencies(org.apache.maven.project.MavenProject project,
String scope,
Map managedVersions,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List remoteRepositories,
boolean resolveTransitively)
Resolve the project dependencies, according to the supplied configuration. |
Method Detail |
---|
Set resolveDependencies(org.apache.maven.project.MavenProject project, String scope, Map managedVersions, org.apache.maven.artifact.repository.ArtifactRepository localRepository, List remoteRepositories, boolean resolveTransitively) throws org.apache.maven.project.artifact.InvalidDependencyVersionException, org.apache.maven.artifact.resolver.ArtifactResolutionException, org.apache.maven.artifact.resolver.ArtifactNotFoundException
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.
Artifact
instances for the project
org.apache.maven.project.artifact.InvalidDependencyVersionException
org.apache.maven.artifact.resolver.ArtifactResolutionException
org.apache.maven.artifact.resolver.ArtifactNotFoundException
Map buildManagedVersionMap(Assembly assembly, AssemblerConfigurationSource configSource) throws ArchiveCreationException, org.apache.maven.artifact.versioning.InvalidVersionSpecificationException, org.apache.maven.project.artifact.InvalidDependencyVersionException, org.apache.maven.artifact.resolver.ArtifactResolutionException
ArtifactCollector
to discover/resolve versions for all
dependencies in the mix, then save these versions in a mapping of:
Artifact.getDependencyConflictId()
-> Artifact
ArchiveCreationException
org.apache.maven.artifact.versioning.InvalidVersionSpecificationException
org.apache.maven.project.artifact.InvalidDependencyVersionException
org.apache.maven.artifact.resolver.ArtifactResolutionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |