Package org.apache.maven.api.metadata
Class Plugin
java.lang.Object
org.apache.maven.api.metadata.Plugin
- All Implemented Interfaces:
- Serializable
@Experimental
@Generated
@ThreadSafe
@Immutable
public class Plugin
extends Object
implements Serializable
Mapping information for a single plugin within this group.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Plugin instances.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedPlugin(Plugin.Builder builder) Constructor for this class, to be called from its subclasses andPlugin.Builder.
- 
Method SummaryModifier and TypeMethodDescriptionThe plugin artifactIdgetName()Display name for the plugin.The plugin invocation prefix (i.e.static Plugin.BuilderCreates a newPluginbuilder instance.static Plugin.BuildernewBuilder(boolean withDefaults) Creates a newPluginbuilder instance using default values or not.static Plugin.BuildernewBuilder(Plugin from) Creates a newPluginbuilder instance using the specified object as a basis.static Plugin.BuildernewBuilder(Plugin from, boolean forceCopy) Creates a newPluginbuilder instance using the specified object as a basis.static PluginCreates a newPlugininstance.static PluginnewInstance(boolean withDefaults) Creates a newPlugininstance using default values or not.with()Creates a new builder with this object as the basis.withArtifactId(String artifactId) Creates a newPlugininstance using the specified artifactId.Creates a newPlugininstance using the specified name.withPrefix(String prefix) Creates a newPlugininstance using the specified prefix.
- 
Constructor Details- 
PluginConstructor for this class, to be called from its subclasses andPlugin.Builder.- See Also:
 
 
- 
- 
Method Details- 
getNameDisplay name for the plugin.- Returns:
- a String
 
- 
getPrefixThe plugin invocation prefix (i.e. eclipse for eclipse:eclipse)- Returns:
- a String
 
- 
getArtifactIdThe plugin artifactId- Returns:
- a String
 
- 
withCreates a new builder with this object as the basis.- Returns:
- a Builder
 
- 
withNameCreates a newPlugininstance using the specified name.- Parameters:
- name- the new- Stringto use
- Returns:
- a Pluginwith the specified name
 
- 
withPrefixCreates a newPlugininstance using the specified prefix.- Parameters:
- prefix- the new- Stringto use
- Returns:
- a Pluginwith the specified prefix
 
- 
withArtifactIdCreates a newPlugininstance using the specified artifactId.- Parameters:
- artifactId- the new- Stringto use
- Returns:
- a Pluginwith the specified artifactId
 
- 
newInstanceCreates a newPlugininstance. Equivalent tonewInstance(true).- Returns:
- a new Plugin
- See Also:
 
- 
newInstanceCreates a newPlugininstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Plugin
 
- 
newBuilderCreates a newPluginbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newPluginbuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newPluginbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- Plugininstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newPluginbuilder instance using the specified object as a basis.- Parameters:
- from- the- Plugininstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
 
-