Class DefaultPluginVersionResolver
java.lang.Object
org.apache.maven.plugin.version.internal.DefaultPluginVersionResolver
- All Implemented Interfaces:
PluginVersionResolver
@Named
@Singleton
public class DefaultPluginVersionResolver
extends Object
implements PluginVersionResolver
Resolves a version for a plugin.
- Since:
- 3.0
- Author:
- Benjamin Bentmann
-
Constructor Summary
ConstructorDescriptionDefaultPluginVersionResolver
(org.eclipse.aether.RepositorySystem repositorySystem, MetadataReader metadataReader, MavenPluginManager pluginManager, org.eclipse.aether.version.VersionScheme versionScheme) -
Method Summary
Modifier and TypeMethodDescriptionresolve
(PluginVersionRequest request) Resolves the version for the specified request.
-
Constructor Details
-
DefaultPluginVersionResolver
@Inject public DefaultPluginVersionResolver(org.eclipse.aether.RepositorySystem repositorySystem, MetadataReader metadataReader, MavenPluginManager pluginManager, org.eclipse.aether.version.VersionScheme versionScheme)
-
-
Method Details
-
resolve
public PluginVersionResult resolve(PluginVersionRequest request) throws PluginVersionResolutionException Description copied from interface:PluginVersionResolver
Resolves the version for the specified request.- Specified by:
resolve
in interfacePluginVersionResolver
- Parameters:
request
- The request that holds the details about the plugin and the repositories to consult, must not benull
.- Returns:
- The result of the version resolution, never
null
. - Throws:
PluginVersionResolutionException
- If the plugin version could not be resolved.
-