Package org.apache.maven.plugin.internal
Class DefaultPluginDependenciesResolver
- java.lang.Object
-
- org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver
-
- All Implemented Interfaces:
PluginDependenciesResolver
@Singleton @Named public class DefaultPluginDependenciesResolver extends java.lang.Object implements PluginDependenciesResolver
Assists in resolving the dependencies of a plugin. Warning: This is an internal utility class that is only public for technical reasons, it is not part of the public API. In particular, this class can be changed or deleted without prior notice.- Since:
- 3.0
- Author:
- Benjamin Bentmann
-
-
Constructor Summary
Constructors Constructor Description DefaultPluginDependenciesResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.eclipse.aether.artifact.Artifactresolve(org.apache.maven.model.Plugin plugin, java.util.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(org.apache.maven.model.Plugin plugin, org.eclipse.aether.artifact.Artifact pluginArtifact, org.eclipse.aether.graph.DependencyFilter dependencyFilter, java.util.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(org.apache.maven.model.Plugin plugin, org.eclipse.aether.graph.DependencyFilter dependencyFilter, java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session)Deprecated.Is unused since 3.10.0org.eclipse.aether.resolution.DependencyResultresolveCoreExtensionAndFlatten(org.apache.maven.model.Plugin plugin, org.eclipse.aether.graph.DependencyFilter dependencyFilter, java.util.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.DependencyResultresolvePluginAndFlatten(org.apache.maven.model.Plugin plugin, org.eclipse.aether.artifact.Artifact pluginArtifact, org.eclipse.aether.graph.DependencyFilter dependencyFilter, java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session)Resolves the runtime dependencies of the specified plugin.
-
-
-
Method Detail
-
resolve
public org.eclipse.aether.artifact.Artifact resolve(org.apache.maven.model.Plugin plugin, java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) throws PluginResolutionExceptionDescription 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(org.apache.maven.model.Plugin plugin, org.eclipse.aether.graph.DependencyFilter dependencyFilter, java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) throws PluginResolutionExceptionDeprecated.Is unused since 3.10.0- Throws:
PluginResolutionException- Since:
- 3.3.0
-
resolveCoreExtensionAndFlatten
public org.eclipse.aether.resolution.DependencyResult resolveCoreExtensionAndFlatten(org.apache.maven.model.Plugin plugin, org.eclipse.aether.graph.DependencyFilter dependencyFilter, java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) throws PluginResolutionExceptionDescription copied from interface:PluginDependenciesResolverResolves the runtime dependencies of the specified core extension (asPluginas GAV carrier).- 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.- Since:
- 3.10.0
-
resolve
public org.eclipse.aether.graph.DependencyNode resolve(org.apache.maven.model.Plugin plugin, org.eclipse.aether.artifact.Artifact pluginArtifact, org.eclipse.aether.graph.DependencyFilter dependencyFilter, java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) throws PluginResolutionExceptionDescription 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.
-
resolvePluginAndFlatten
public org.eclipse.aether.resolution.DependencyResult resolvePluginAndFlatten(org.apache.maven.model.Plugin plugin, org.eclipse.aether.artifact.Artifact pluginArtifact, org.eclipse.aether.graph.DependencyFilter dependencyFilter, java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) throws PluginResolutionExceptionDescription copied from interface:PluginDependenciesResolverResolves the runtime dependencies of the specified plugin.- 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.
-
-