public class Plugin extends ConfigurationContainer implements Serializable, Cloneable
<plugin> element contains
 informations required for a plugin.| Constructor and Description | 
|---|
| Plugin() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addDependency(Dependency dependency)Method addDependency. | 
| void | addExecution(PluginExecution pluginExecution)Method addExecution. | 
| Plugin | clone()Method clone. | 
| static String | constructKey(String groupId,
            String artifactId) | 
| boolean | equals(Object other) | 
| void | flushExecutionMap()Reset the  executionMapfield tonull | 
| String | getArtifactId()Get the artifact ID of the plugin in the repository. | 
| List<Dependency> | getDependencies()Method getDependencies. | 
| List<PluginExecution> | getExecutions()Method getExecutions. | 
| Map<String,PluginExecution> | getExecutionsAsMap() | 
| String | getExtensions()Get whether to load Maven extensions (such as packaging and
 type handlers) from
             this plugin. | 
| Object | getGoals()Get Deprecated. | 
| String | getGroupId()Get the group ID of the plugin in the repository. | 
| String | getId()Gets the identifier of the plugin. | 
| String | getKey() | 
| String | getVersion()Get the version (or valid range of versions) of the plugin
 to be used. | 
| int | hashCode() | 
| boolean | isExtensions() | 
| 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<Dependency> dependencies)Set additional dependencies that this project needs to
 introduce to the plugin's
             classloader. | 
| void | setExecutions(List<PluginExecution> executions)Set multiple specifications of a set of goals to execute
 during the build
             lifecycle, each having (possibly) a different
 configuration. | 
| void | setExtensions(boolean extensions) | 
| void | setExtensions(String 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 | setVersion(String version)Set the version (or valid range of versions) of the plugin
 to be used. | 
| String | toString() | 
getConfiguration, getInherited, getLocation, isInheritanceApplied, isInherited, setConfiguration, setInherited, setInherited, setLocation, setOtherLocation, unsetInheritanceAppliedpublic void addDependency(Dependency dependency)
dependency - public void addExecution(PluginExecution pluginExecution)
pluginExecution - public Plugin clone()
clone in class ConfigurationContainerpublic String getArtifactId()
public List<Dependency> getDependencies()
public List<PluginExecution> getExecutions()
public String getExtensions()
String for
 technical reasons, the semantic type is actually
             Boolean. Default value is
 false.public Object getGoals()
public String getGroupId()
public String getVersion()
public void removeDependency(Dependency dependency)
dependency - public void removeExecution(PluginExecution pluginExecution)
pluginExecution - public void setArtifactId(String artifactId)
artifactId - public void setDependencies(List<Dependency> dependencies)
dependencies - public void setExecutions(List<PluginExecution> executions)
executions - public void setExtensions(String extensions)
String for
 technical reasons, the semantic type is actually
             Boolean. Default value is
 false.extensions - public void setGoals(Object goals)
goals - public void setGroupId(String groupId)
groupId - public void setVersion(String version)
version - public boolean isExtensions()
public void setExtensions(boolean extensions)
public void flushExecutionMap()
executionMap field to nullpublic Map<String,PluginExecution> getExecutionsAsMap()
PluginExecution#getId() as keyPluginExecution.getId()public String getId()
<groupId>:<artifactId>:<version>, never null.public String getKey()
groupId:artifactIdpublic static String constructKey(String groupId, String artifactId)
groupId - The group ID of the plugin in the repositoryartifactId - The artifact ID of the reporting plugin in the repositorygroupId:artifactIdpublic boolean equals(Object other)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public String toString()
toString in class ObjectObject.toString()Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.