Package org.apache.maven.model
Class Plugin
java.lang.Object
org.apache.maven.model.BaseObject
org.apache.maven.model.ConfigurationContainer
org.apache.maven.model.Plugin
- All Implemented Interfaces:
- Serializable,- Cloneable,- InputLocationTracker
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.maven.model.BaseObjectBaseObject.ChildrenTracking
- 
Field SummaryFields inherited from class org.apache.maven.model.BaseObjectchildrenTracking, delegate
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddDependency(Dependency dependency) voidaddExecution(PluginExecution execution) clone()static StringconstructKey(String groupId, String artifactId) booleanvoidDeprecated.getId()Gets the identifier of the plugin.getKey()getLocation(Object key) Gets the location of the specified field in the input source.inthashCode()booleanpluginToApiV3(List<Plugin> list) pluginToApiV4(List<Plugin> list) voidremoveDependency(Dependency dependency) voidremoveExecution(PluginExecution execution) protected booleanvoidsetArtifactId(String artifactId) voidsetDependencies(List<Dependency> dependencies) voidsetExecutions(List<PluginExecution> executions) voidsetExtensions(boolean extensions) voidsetExtensions(String extensions) voidsetGroupId(String groupId) voidsetLocation(Object key, InputLocation location) Sets the location of the specified field.voidsetVersion(String version) Methods inherited from class org.apache.maven.model.ConfigurationContainerconfigurationContainerToApiV3, configurationContainerToApiV4, getConfiguration, getInherited, isInherited, setConfiguration, setInherited, unsetInheritanceAppliedMethods inherited from class org.apache.maven.model.BaseObjectupdate
- 
Constructor Details- 
Pluginpublic Plugin()
- 
Plugin
- 
Plugin
 
- 
- 
Method Details- 
clone- Overrides:
- clonein class- ConfigurationContainer
 
- 
getDelegate- Overrides:
- getDelegatein class- ConfigurationContainer
 
- 
equals- Overrides:
- equalsin class- ConfigurationContainer
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- ConfigurationContainer
 
- 
getGroupId
- 
setGroupId
- 
getArtifactId
- 
setArtifactId
- 
getVersion
- 
setVersion
- 
getExtensions
- 
setExtensions
- 
getExecutions
- 
setExecutions
- 
addExecution
- 
removeExecution
- 
getDependencies
- 
setDependencies
- 
addDependency
- 
removeDependency
- 
getLocationDescription copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
- Overrides:
- getLocationin class- ConfigurationContainer
- Parameters:
- key- The key of the field, must not be- null.
- Returns:
- The location of the field in the input source or
 nullif unknown.
 
- 
setLocationDescription copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
- setLocationin interface- InputLocationTracker
- Overrides:
- setLocationin class- ConfigurationContainer
- Parameters:
- key- The key of the field, must not be- null.
- location- The location of the field, may be- null.
 
- 
replace- Overrides:
- replacein class- ConfigurationContainer
 
- 
pluginToApiV4
- 
pluginToApiV3
- 
isExtensionspublic boolean isExtensions()
- 
setExtensionspublic void setExtensions(boolean extensions) 
- 
flushExecutionMapDeprecated.Reset theexecutionMapfield tonull
- 
getExecutionsAsMap- Returns:
- a Map of executions field with PluginExecution#getId()as key
- See Also:
 
- 
getIdGets the identifier of the plugin.- Returns:
- the plugin id in the form <groupId>:<artifactId>:<version>, nevernull
 
- 
getKey- Returns:
- the key of the plugin, ie groupId:artifactId
 
- 
constructKey- Parameters:
- groupId- the group ID of the plugin in the repository
- artifactId- the artifact ID of the reporting plugin in the repository
- Returns:
- the key of the plugin, ie groupId:artifactId
 
 
-