org.apache.maven.model
Class Plugin

java.lang.Object
  extended byorg.apache.maven.model.ConfigurationContainer
      extended byorg.apache.maven.model.Plugin
All Implemented Interfaces:
Serializable

public class Plugin
extends ConfigurationContainer
implements Serializable

null

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Plugin()
           
 
Method Summary
 void addDependency(Dependency dependency)
          Method addDependency
 void addExecution(PluginExecution pluginExecution)
          Method addExecution
static String constructKey(String groupId, String artifactId)
           
 void flushExecutionMap()
           
 String getArtifactId()
          Get The artifact ID of the plugin in the repository.
 List getDependencies()
          Method getDependencies
 List getExecutions()
          Method getExecutions
 Map getExecutionsAsMap()
           
 Object getGoals()
          Get Deprecated.
 String getGroupId()
          Get The group ID of the plugin in the repository.
 String getKey()
           
 String getModelEncoding()
           
 String getVersion()
          Get The version (or valid range of verisons) of the plugin to be used.
 boolean isExtensions()
          Get Whether to load Maven extensions (such as packaging and type handlers) from this plugin.
 void removeDependency(Dependency dependency)
          Method removeDependency
 void removeExecution(PluginExecution pluginExecution)
          Method removeExecution
 void setArtifactId(String artifactId)
          Set The artifact ID of the plugin in the repository.
 void setDependencies(List dependencies)
          Set Additional dependencies that this project needs to introduce to the plugin's classloader.
 void setExecutions(List executions)
          Set Multiple specifications of a set of goals to execute during the build lifecycle, each having (possibly) different configuration.
 void setExtensions(boolean extensions)
          Set Whether to load Maven extensions (such as packaging and type handlers) from this plugin.
 void setGoals(Object goals)
          Set Deprecated.
 void setGroupId(String groupId)
          Set The group ID of the plugin in the repository.
 void setModelEncoding(String modelEncoding)
           
 void setVersion(String version)
          Set The version (or valid range of verisons) of the plugin to be used.
 
Methods inherited from class org.apache.maven.model.ConfigurationContainer
getConfiguration, getInherited, isInheritanceApplied, setConfiguration, setInherited, unsetInheritanceApplied
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Plugin

public Plugin()
Method Detail

addDependency

public void addDependency(Dependency dependency)
Method addDependency

Parameters:
dependency -

addExecution

public void addExecution(PluginExecution pluginExecution)
Method addExecution

Parameters:
pluginExecution -

getArtifactId

public String getArtifactId()
Get The artifact ID of the plugin in the repository.


getDependencies

public List getDependencies()
Method getDependencies


getExecutions

public List getExecutions()
Method getExecutions


getGoals

public Object getGoals()
Get Deprecated. Unused by Maven.


getGroupId

public String getGroupId()
Get The group ID of the plugin in the repository.


getVersion

public String getVersion()
Get The version (or valid range of verisons) of the plugin to be used.


isExtensions

public boolean isExtensions()
Get Whether to load Maven extensions (such as packaging and type handlers) from this plugin. For performance reasons, this should only be enabled when necessary.


removeDependency

public void removeDependency(Dependency dependency)
Method removeDependency

Parameters:
dependency -

removeExecution

public void removeExecution(PluginExecution pluginExecution)
Method removeExecution

Parameters:
pluginExecution -

setArtifactId

public void setArtifactId(String artifactId)
Set The artifact ID of the plugin in the repository.

Parameters:
artifactId -

setDependencies

public void setDependencies(List dependencies)
Set Additional dependencies that this project needs to introduce to the plugin's classloader.

Parameters:
dependencies -

setExecutions

public void setExecutions(List executions)
Set Multiple specifications of a set of goals to execute during the build lifecycle, each having (possibly) different configuration.

Parameters:
executions -

setExtensions

public void setExtensions(boolean extensions)
Set Whether to load Maven extensions (such as packaging and type handlers) from this plugin. For performance reasons, this should only be enabled when necessary.

Parameters:
extensions -

setGoals

public void setGoals(Object goals)
Set Deprecated. Unused by Maven.

Parameters:
goals -

setGroupId

public void setGroupId(String groupId)
Set The group ID of the plugin in the repository.

Parameters:
groupId -

setVersion

public void setVersion(String version)
Set The version (or valid range of verisons) of the plugin to be used.

Parameters:
version -

flushExecutionMap

public void flushExecutionMap()

getExecutionsAsMap

public Map getExecutionsAsMap()

getKey

public String getKey()

constructKey

public static String constructKey(String groupId,
                                  String artifactId)

setModelEncoding

public void setModelEncoding(String modelEncoding)
Overrides:
setModelEncoding in class ConfigurationContainer

getModelEncoding

public String getModelEncoding()
Overrides:
getModelEncoding in class ConfigurationContainer


Copyright 2001-2006 Apache Software Foundation. All Rights Reserved.