org.apache.maven.plugin.loader
Interface PluginPrefixLoader

All Known Implementing Classes:
DefaultPluginPrefixLoader

public interface PluginPrefixLoader


Method Summary
 Plugin findPluginForPrefix(java.lang.String prefix, MavenProject project, MavenSession session)
          Determine the appropriate Plugin 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.
 

Method Detail

findPluginForPrefix

Plugin findPluginForPrefix(java.lang.String prefix,
                           MavenProject project,
                           MavenSession session)
                           throws PluginLoaderException
Determine the appropriate Plugin 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.

Throws:
PluginLoaderException


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