public class Plugin extends ConfigurationContainerimplements Serializable , Cloneable
<plugin> element contains informations required for a plugin.
| Constructor and Description |
|---|
Plugin()
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(Dependency
Method addDependency.
|
void |
addExecution(PluginExecution
Method addExecution.
|
Plugin |
clone()
Method clone.
|
static String |
constructKey(String
|
boolean |
equals(Object
|
void |
flushExecutionMap()
Reset the
executionMap field to
null
|
String |
getArtifactId()
Get the artifact ID of the plugin in the repository.
|
List |
getDependencies()
Method getDependencies.
|
List |
getExecutions()
Method getExecutions.
|
Map |
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
Method removeDependency.
|
void |
removeExecution(PluginExecution
Method removeExecution.
|
void |
setArtifactId(String
Set the artifact ID of the plugin in the repository.
|
void |
setDependencies(List
Set additional dependencies that this project needs to introduce to the plugin's classloader.
|
void |
setExecutions(List
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
Set whether to load Maven extensions (such as packaging and type handlers) from this plugin.
|
void |
setGoals(Object
Set
Deprecated.
|
void |
setGroupId(String
Set the group ID of the plugin in the repository.
|
void |
setVersion(String
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, unsetInheritanceAppliedpublic void addDependency(Dependencydependency)
dependency -
public void addExecution(PluginExecutionpluginExecution)
pluginExecution -
public Pluginclone()
clone in class
ConfigurationContainer
public StringgetArtifactId()
public List<Dependency > getDependencies()
public List<PluginExecution > getExecutions()
public StringgetExtensions()
String for technical reasons, the semantic type is actually
Boolean. Default value is
false.
public ObjectgetGoals()
public StringgetGroupId()
public StringgetVersion()
public void removeDependency(Dependencydependency)
dependency -
public void removeExecution(PluginExecutionpluginExecution)
pluginExecution -
public void setArtifactId(StringartifactId)
artifactId -
public void setDependencies(List<Dependency > dependencies)
dependencies -
public void setExecutions(List<PluginExecution > executions)
executions -
public void setExtensions(Stringextensions)
String for technical reasons, the semantic type is actually
Boolean. Default value is
false.
extensions -
public void setGoals(Objectgoals)
goals -
public void setGroupId(StringgroupId)
groupId -
public void setVersion(Stringversion)
version -
public boolean isExtensions()
public void setExtensions(boolean extensions)
public void flushExecutionMap()
executionMap field to
null
public Map<String ,PluginExecution > getExecutionsAsMap()
PluginExecution#getId() as key
PluginExecution.getId()
public StringgetId()
<groupId>:<artifactId>:<version>, never
null.
public StringgetKey()
groupId:artifactId
public static StringconstructKey(String groupId, String artifactId)
groupId -
artifactId -
groupId:artifactId
public boolean equals(Objectother)
equals in class
Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode in class
Object
Object.hashCode()
public StringtoString()
toString in class
Object
Object.toString()