Interface PluginDependenciesResolver
- All Known Implementing Classes:
DefaultPluginDependenciesResolver
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.aether.artifact.Artifactresolve(Plugin plugin, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) Resolves the main artifact of the specified plugin.org.eclipse.aether.graph.DependencyNoderesolve(Plugin plugin, org.eclipse.aether.artifact.Artifact pluginArtifact, org.eclipse.aether.graph.DependencyFilter dependencyFilter, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) Deprecated.default org.eclipse.aether.resolution.DependencyResultresolveCoreExtensionAndFlatten(Plugin plugin, org.eclipse.aether.graph.DependencyFilter dependencyFilter, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) Resolves the runtime dependencies of the specified core extension (asPluginas GAV carrier).org.eclipse.aether.resolution.DependencyResultresolvePlugin(Plugin plugin, org.eclipse.aether.artifact.Artifact artifact, org.eclipse.aether.graph.DependencyFilter dependencyFilter, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) Deprecated.default org.eclipse.aether.resolution.DependencyResultresolvePluginAndFlatten(Plugin plugin, org.eclipse.aether.artifact.Artifact pluginArtifact, org.eclipse.aether.graph.DependencyFilter dependencyFilter, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) Resolves the runtime dependencies of the specified plugin.
-
Method Details
-
resolve
org.eclipse.aether.artifact.Artifact resolve(Plugin plugin, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.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 benull.repositories- The plugin repositories to use for resolving the plugin's main artifact, must not benull.session- The repository session to use for resolving the plugin's main artifact, must not benull.- Returns:
- The resolved plugin artifact, never
null. - Throws:
PluginResolutionException- If the plugin artifact could not be resolved.
-
resolve
@Deprecated org.eclipse.aether.graph.DependencyNode resolve(Plugin plugin, org.eclipse.aether.artifact.Artifact pluginArtifact, org.eclipse.aether.graph.DependencyFilter dependencyFilter, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) throws PluginResolutionException Deprecated.This method should be avoided, as it requires manual flattening; useresolvePluginAndFlatten(Plugin, Artifact, DependencyFilter, List, RepositorySystemSession)instead to let Resolver handle it.Resolves the runtime dependencies of the specified plugin.- Parameters:
plugin- The plugin for which to resolve the dependencies, must not benull.pluginArtifact- The plugin's main artifact, may benull.dependencyFilter- A filter to exclude artifacts from resolution (but not collection), may benull.repositories- The plugin repositories to use for resolving the plugin artifacts, must not benull.session- The repository session to use for resolving the plugin artifacts, must not benull.- Returns:
- The dependency tree denoting the resolved plugin class path, never
null. - Throws:
PluginResolutionException- If any dependency could not be resolved.
-
resolveCoreExtensionAndFlatten
default org.eclipse.aether.resolution.DependencyResult resolveCoreExtensionAndFlatten(Plugin plugin, org.eclipse.aether.graph.DependencyFilter dependencyFilter, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) throws PluginResolutionException Resolves the runtime dependencies of the specified core extension (asPluginas GAV carrier).The default implementation delegates to
resolvePlugin(Plugin, Artifact, DependencyFilter, List, RepositorySystemSession)so that implementations written against Maven 4.0.0-rc-5 and earlier keep working. Implementations should override this method: unlike the default, a dedicated implementation is expected to read the extension's artifact descriptor first, applying relocations and dependency validation.- Parameters:
plugin- The plugin for which to resolve the dependencies, must not benull.dependencyFilter- A filter to exclude artifacts from resolution (but not collection), may benull.repositories- The plugin repositories to use for resolving the plugin artifacts, must not benull.session- The repository session to use for resolving the plugin artifacts, must not benull.- Returns:
- The dependency resolution result having the resolved extension class path but also the tree, never
null. - Throws:
PluginResolutionException- If any dependency could not be resolved.- Since:
- 3.10.0
-
resolvePlugin
@Deprecated org.eclipse.aether.resolution.DependencyResult resolvePlugin(Plugin plugin, org.eclipse.aether.artifact.Artifact artifact, org.eclipse.aether.graph.DependencyFilter dependencyFilter, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) throws PluginResolutionException Deprecated.Resolves the runtime dependencies of the specified plugin.Implementations must not delegate to
resolvePluginAndFlatten(Plugin, Artifact, DependencyFilter, List, RepositorySystemSession)without also overriding it: the default implementation of that method delegates back here.- Parameters:
plugin- The plugin for which to resolve the dependencies, must not benull.artifact- The plugin's main artifact, may benull.dependencyFilter- A filter to exclude artifacts from resolution (but not collection), may benull.repositories- The plugin repositories to use for resolving the plugin artifacts, must not benull.session- The repository session to use for resolving the plugin artifacts, must not benull.- Returns:
- The dependency resolution result having the resolved plugin class path but also the tree, never
null. - Throws:
PluginResolutionException- If any dependency could not be resolved.- Since:
- 4.0.0-beta-2
-
resolvePluginAndFlatten
default org.eclipse.aether.resolution.DependencyResult resolvePluginAndFlatten(Plugin plugin, org.eclipse.aether.artifact.Artifact pluginArtifact, org.eclipse.aether.graph.DependencyFilter dependencyFilter, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) throws PluginResolutionException Resolves the runtime dependencies of the specified plugin.The default implementation delegates to
resolvePlugin(Plugin, Artifact, DependencyFilter, List, RepositorySystemSession), which this method supersedes, so that implementations written against Maven 4.0.0-rc-5 and earlier keep working.- Parameters:
plugin- The plugin for which to resolve the dependencies, must not benull.pluginArtifact- The plugin's main artifact, may benull.dependencyFilter- A filter to exclude artifacts from resolution (but not collection), may benull.repositories- The plugin repositories to use for resolving the plugin artifacts, must not benull.session- The repository session to use for resolving the plugin artifacts, must not benull.- Returns:
- The dependency resolution result having the resolved plugin class path but also the tree, never
null. - Throws:
PluginResolutionException- If any dependency could not be resolved.- Since:
- 3.10.0
-
resolvePluginAndFlatten(Plugin, Artifact, DependencyFilter, List, RepositorySystemSession)instead to let Resolver handle it.