org.apache.maven.plugin.loader
Class DefaultPluginPrefixLoader

java.lang.Object
  extended by org.apache.maven.plugin.loader.DefaultPluginPrefixLoader
All Implemented Interfaces:
PluginPrefixLoader, org.codehaus.plexus.logging.LogEnabled

@Component(role=PluginPrefixLoader.class)
public class DefaultPluginPrefixLoader
extends java.lang.Object
implements PluginPrefixLoader, org.codehaus.plexus.logging.LogEnabled


Constructor Summary
DefaultPluginPrefixLoader()
           
 
Method Summary
 void enableLogging(org.codehaus.plexus.logging.Logger logger)
           
 Plugin findPluginForPrefix(java.lang.String prefix, MavenProject project, MavenSession session)
          Determine the appropriate PluginDescriptor instance for use with the specified plugin prefix, using the following strategies (in order):
Search for a plugin that has already been loaded with the specified prefix Search for a plugin configured in the POM that has a matching prefix Search the pluginGroups specified in the settings.xml for a matching plugin Use groupId == org.apache.maven.plugins, and artifactId == maven-<prefix>-plugin, and try to resolve based on that.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPluginPrefixLoader

public DefaultPluginPrefixLoader()
Method Detail

findPluginForPrefix

public Plugin findPluginForPrefix(java.lang.String prefix,
                                  MavenProject project,
                                  MavenSession session)
                           throws PluginLoaderException
Determine the appropriate PluginDescriptor instance for use with the specified plugin prefix, using the following strategies (in order):
  1. Search for a plugin that has already been loaded with the specified prefix
  2. Search for a plugin configured in the POM that has a matching prefix
  3. Search the pluginGroups specified in the settings.xml for a matching plugin
  4. Use groupId == org.apache.maven.plugins, and artifactId == maven-<prefix>-plugin, and try to resolve based on that.

Specified by:
findPluginForPrefix in interface PluginPrefixLoader
Throws:
PluginLoaderException

enableLogging

public void enableLogging(org.codehaus.plexus.logging.Logger logger)
Specified by:
enableLogging in interface org.codehaus.plexus.logging.LogEnabled


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.