@Component(role=PluginDependenciesResolver.class) public class DefaultPluginDependenciesResolver extends Object implements PluginDependenciesResolver
Constructor and Description |
---|
DefaultPluginDependenciesResolver() |
Modifier and Type | Method and Description |
---|---|
DependencyNode |
resolve(Plugin plugin,
Artifact pluginArtifact,
DependencyFilter dependencyFilter,
List<RemoteRepository> repositories,
RepositorySystemSession session)
Resolves the runtime dependencies of the specified plugin.
|
Artifact |
resolve(Plugin plugin,
List<RemoteRepository> repositories,
RepositorySystemSession session)
Resolves the main artifact of the specified plugin.
|
DependencyNode |
resolveCoreExtension(Plugin plugin,
DependencyFilter dependencyFilter,
List<RemoteRepository> repositories,
RepositorySystemSession session) |
public Artifact resolve(Plugin plugin, List<RemoteRepository> repositories, RepositorySystemSession session) throws PluginResolutionException
PluginDependenciesResolver
resolve
in interface PluginDependenciesResolver
plugin
- The plugin for which to resolve the main artifact, must not be null
.repositories
- The plugin repositories to use for resolving the plugin's main artifact, must not be null
.session
- The repository session to use for resolving the plugin's main artifact, must not be null
.null
.PluginResolutionException
- If the plugin artifact could not be resolved.public DependencyNode resolveCoreExtension(Plugin plugin, DependencyFilter dependencyFilter, List<RemoteRepository> repositories, RepositorySystemSession session) throws PluginResolutionException
PluginResolutionException
public DependencyNode resolve(Plugin plugin, Artifact pluginArtifact, DependencyFilter dependencyFilter, List<RemoteRepository> repositories, RepositorySystemSession session) throws PluginResolutionException
PluginDependenciesResolver
resolve
in interface PluginDependenciesResolver
plugin
- The plugin for which to resolve the dependencies, must not be null
.pluginArtifact
- The plugin's main artifact, may be null
.dependencyFilter
- A filter to exclude artifacts from resolution (but not collection), may be null
.repositories
- The plugin repositories to use for resolving the plugin artifacts, must not be null
.session
- The repository session to use for resolving the plugin artifacts, must not be null
.null
.PluginResolutionException
- If any dependency could not be resolved.Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.