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 Summary
Nested classes/interfaces inherited from class org.apache.maven.model.BaseObject
BaseObject.ChildrenTracking -
Field Summary
Fields inherited from class org.apache.maven.model.BaseObject
childrenTracking, delegate -
Constructor Summary
Constructors -
Method Summary
Modifier 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.ConfigurationContainer
configurationContainerToApiV3, configurationContainerToApiV4, getConfiguration, getInherited, isInherited, setConfiguration, setInherited, unsetInheritanceAppliedMethods inherited from class org.apache.maven.model.BaseObject
update
-
Constructor Details
-
Plugin
public Plugin() -
Plugin
-
Plugin
-
-
Method Details
-
clone
- Overrides:
clonein classConfigurationContainer
-
getDelegate
- Overrides:
getDelegatein classConfigurationContainer
-
equals
- Overrides:
equalsin classConfigurationContainer
-
hashCode
public int hashCode()- Overrides:
hashCodein classConfigurationContainer
-
getGroupId
-
setGroupId
-
getArtifactId
-
setArtifactId
-
getVersion
-
setVersion
-
getExtensions
-
setExtensions
-
getExecutions
-
setExecutions
-
addExecution
-
removeExecution
-
getDependencies
-
setDependencies
-
addDependency
-
removeDependency
-
getLocation
Description copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker- Overrides:
getLocationin classConfigurationContainer- Parameters:
key- The key of the field, must not benull.- Returns:
- The location of the field in the input source or
nullif unknown.
-
setLocation
Description copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
setLocationin interfaceInputLocationTracker- Overrides:
setLocationin classConfigurationContainer- Parameters:
key- The key of the field, must not benull.location- The location of the field, may benull.
-
replace
- Overrides:
replacein classConfigurationContainer
-
pluginToApiV4
-
pluginToApiV3
-
isExtensions
public boolean isExtensions() -
setExtensions
public void setExtensions(boolean extensions) -
flushExecutionMap
Deprecated.Reset theexecutionMapfield tonull -
getExecutionsAsMap
- Returns:
- a Map of executions field with
PluginExecution#getId()as key - See Also:
-
getId
Gets 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 repositoryartifactId- the artifact ID of the reporting plugin in the repository- Returns:
- the key of the plugin, ie
groupId:artifactId
-