|
||||||||||
| 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. |
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 |
getExecutionsAsMap()
|
Object |
getGoals()
Get Deprecated. |
String |
getGroupId()
Get the group ID of the plugin in the repository. |
String |
getKey()
|
String |
getVersion()
Get the version (or valid range of versions) of the plugin to be used. |
int |
hashCode()
|
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<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)
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, isInheritanceApplied, setConfiguration, setInherited, unsetInheritanceApplied |
| Methods inherited from class java.lang.Object |
|---|
clone, 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 String getArtifactId()
public List<Dependency> getDependencies()
public List<PluginExecution> getExecutions()
public Object getGoals()
public String getGroupId()
public String getVersion()
public boolean isExtensions()
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(boolean extensions)
extensions - public void setGoals(Object goals)
goals - public void setGroupId(String groupId)
groupId - public void setVersion(String version)
version - public void flushExecutionMap()
executionMap field to null
public Map getExecutionsAsMap()
PluginExecution#getId() as keyPluginExecution.getId()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 | |||||||||