Class DefaultPluginDependenciesResolver
- All Implemented Interfaces:
PluginDependenciesResolver
- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultPluginDependenciesResolver(org.eclipse.aether.RepositorySystem repoSystem, List<org.apache.maven.plugin.internal.MavenPluginDependenciesValidator> dependenciesValidators) -
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) Resolves the runtime dependencies of the specified plugin.org.eclipse.aether.graph.DependencyNoderesolveCoreExtension(Plugin plugin, org.eclipse.aether.graph.DependencyFilter dependencyFilter, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) Deprecated.Is unused since 3.10+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.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.
-
Constructor Details
-
DefaultPluginDependenciesResolver
@Inject public DefaultPluginDependenciesResolver(org.eclipse.aether.RepositorySystem repoSystem, List<org.apache.maven.plugin.internal.MavenPluginDependenciesValidator> dependenciesValidators)
-
-
Method Details
-
resolve
public org.eclipse.aether.artifact.Artifact resolve(Plugin plugin, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) throws PluginResolutionException Description copied from interface:PluginDependenciesResolverResolves the main artifact of the specified plugin.- Specified by:
resolvein interfacePluginDependenciesResolver- 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.
-
resolveCoreExtension
@Deprecated public org.eclipse.aether.graph.DependencyNode resolveCoreExtension(Plugin plugin, org.eclipse.aether.graph.DependencyFilter dependencyFilter, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) throws PluginResolutionException Deprecated.Is unused since 3.10+- Throws:
PluginResolutionException- Since:
- 3.3.0
-
resolveCoreExtensionAndFlatten
public 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 Description copied from interface:PluginDependenciesResolverResolves the runtime dependencies of the specified core extension (asPluginas GAV carrier).The default implementation delegates to
PluginDependenciesResolver.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.- Specified by:
resolveCoreExtensionAndFlattenin interfacePluginDependenciesResolver- 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.
-
resolvePlugin
@Deprecated public 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.Description copied from interface:PluginDependenciesResolverResolves the runtime dependencies of the specified plugin.Implementations must not delegate to
PluginDependenciesResolver.resolvePluginAndFlatten(Plugin, Artifact, DependencyFilter, List, RepositorySystemSession)without also overriding it: the default implementation of that method delegates back here.- Specified by:
resolvePluginin interfacePluginDependenciesResolver- 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.
-
resolvePluginAndFlatten
public 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 Description copied from interface:PluginDependenciesResolverResolves the runtime dependencies of the specified plugin.The default implementation delegates to
PluginDependenciesResolver.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.- Specified by:
resolvePluginAndFlattenin interfacePluginDependenciesResolver- 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.
-
resolve
public 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 Description copied from interface:PluginDependenciesResolverResolves the runtime dependencies of the specified plugin.- Specified by:
resolvein interfacePluginDependenciesResolver- 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.
-