Class DefaultPluginVersionResolver
java.lang.Object
org.apache.maven.plugin.version.internal.DefaultPluginVersionResolver
- All Implemented Interfaces:
PluginVersionResolver
@Component(role=PluginVersionResolver.class)
public class DefaultPluginVersionResolver
extends Object
implements PluginVersionResolver
Resolves a version for a plugin.
- Since:
- 3.0
- Author:
- Benjamin Bentmann
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionresolve
(PluginVersionRequest request) Resolves the version for the specified request.
-
Constructor Details
-
DefaultPluginVersionResolver
public DefaultPluginVersionResolver()
-
-
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.
-