|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.model.ConfigurationContainer
org.apache.maven.model.Plugin
public class Plugin
The <plugin> element contains
informations required for a plugin.
| Constructor Summary | |
|---|---|
Plugin()
|
|
| Method Summary | |
|---|---|
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 executionMap field to null |
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()
|
| Methods inherited from class org.apache.maven.model.ConfigurationContainer |
|---|
getConfiguration, getInherited, getLocation, isInheritanceApplied, isInherited, setConfiguration, setInherited, setInherited, setLocation, unsetInheritanceApplied |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Plugin()
| Method Detail |
|---|
public 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 null
public Map<String,PluginExecution> getExecutionsAsMap()
PluginExecution#getId() as keyPluginExecution.getId()public String getId()
<groupId>:<artifactId>:<version>, never null.public String getKey()
groupId:artifactId
public static String constructKey(String groupId,
String artifactId)
groupId - artifactId -
groupId: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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||