org.apache.maven.plugin.internal
Interface PluginDependenciesResolver

All Known Implementing Classes:
DefaultPluginDependenciesResolver

public interface PluginDependenciesResolver

Assists in resolving the dependencies of a plugin. Warning: This is an internal utility interface that is only public for technical reasons, it is not part of the public API. In particular, this interface can be changed or deleted without prior notice.

Since:
3.0
Author:
Benjamin Bentmann

Method Summary
 org.sonatype.aether.graph.DependencyNode resolve(Plugin plugin, org.sonatype.aether.artifact.Artifact pluginArtifact, org.sonatype.aether.graph.DependencyFilter dependencyFilter, List<org.sonatype.aether.repository.RemoteRepository> repositories, org.sonatype.aether.RepositorySystemSession session)
          Resolves the runtime dependencies of the specified plugin.
 org.sonatype.aether.artifact.Artifact resolve(Plugin plugin, List<org.sonatype.aether.repository.RemoteRepository> repositories, org.sonatype.aether.RepositorySystemSession session)
          Resolves the main artifact of the specified plugin.
 

Method Detail

resolve

org.sonatype.aether.artifact.Artifact resolve(Plugin plugin,
                                              List<org.sonatype.aether.repository.RemoteRepository> repositories,
                                              org.sonatype.aether.RepositorySystemSession session)
                                              throws PluginResolutionException
Resolves the main artifact of the specified plugin.

Parameters:
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.
Returns:
The resolved plugin artifact, never null.
Throws:
PluginResolutionException - If the plugin artifact could not be resolved.

resolve

org.sonatype.aether.graph.DependencyNode resolve(Plugin plugin,
                                                 org.sonatype.aether.artifact.Artifact pluginArtifact,
                                                 org.sonatype.aether.graph.DependencyFilter dependencyFilter,
                                                 List<org.sonatype.aether.repository.RemoteRepository> repositories,
                                                 org.sonatype.aether.RepositorySystemSession session)
                                                 throws PluginResolutionException
Resolves the runtime dependencies of the specified plugin.

Parameters:
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.
Returns:
The dependency tree denoting the resolved plugin class path, never null.
Throws:
PluginResolutionException - If any dependency could not be resolved.


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