Class DefaultPluginPrefixResolver
java.lang.Object
org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver
- All Implemented Interfaces:
PluginPrefixResolver
@Named
@Singleton
public class DefaultPluginPrefixResolver
extends Object
implements PluginPrefixResolver
Resolves a plugin prefix.
- Since:
- 3.0
-
Constructor Summary
ConstructorDescriptionDefaultPluginPrefixResolver
(BuildPluginManager pluginManager, org.eclipse.aether.RepositorySystem repositorySystem, MetadataReader metadataReader) -
Method Summary
Modifier and TypeMethodDescriptionresolve
(PluginPrefixRequest request) Resolves the plugin prefix for the specified request.
-
Constructor Details
-
DefaultPluginPrefixResolver
@Inject public DefaultPluginPrefixResolver(BuildPluginManager pluginManager, org.eclipse.aether.RepositorySystem repositorySystem, MetadataReader metadataReader)
-
-
Method Details
-
resolve
public PluginPrefixResult resolve(PluginPrefixRequest request) throws NoPluginFoundForPrefixException Description copied from interface:PluginPrefixResolver
Resolves the plugin prefix for the specified request.- Specified by:
resolve
in interfacePluginPrefixResolver
- Parameters:
request
- The request that holds the details about the plugin and the repositories to consult, must not benull
.- Returns:
- The result of the prefix resolution, never
null
. - Throws:
NoPluginFoundForPrefixException
- If the plugin prefix could not be resolved.
-