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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Plugin instances. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPlugin(Plugin.Builder builder) Constructor for this class, to be called from its subclasses andPlugin.Builder. -
Method Summary
Modifier 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
-
Plugin
Constructor for this class, to be called from its subclasses andPlugin.Builder.- See Also:
-
-
Method Details
-
getName
Display name for the plugin.- Returns:
- a
String
-
getPrefix
The plugin invocation prefix (i.e. eclipse for eclipse:eclipse)- Returns:
- a
String
-
getArtifactId
The plugin artifactId- Returns:
- a
String
-
with
Creates a new builder with this object as the basis.- Returns:
- a
Builder
-
withName
Creates a newPlugininstance using the specified name.- Parameters:
name- the newStringto use- Returns:
- a
Pluginwith the specified name
-
withPrefix
Creates a newPlugininstance using the specified prefix.- Parameters:
prefix- the newStringto use- Returns:
- a
Pluginwith the specified prefix
-
withArtifactId
Creates a newPlugininstance using the specified artifactId.- Parameters:
artifactId- the newStringto use- Returns:
- a
Pluginwith the specified artifactId
-
newInstance
Creates a newPlugininstance. Equivalent tonewInstance(true).- Returns:
- a new
Plugin - See Also:
-
newInstance
Creates 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
-
newBuilder
Creates a newPluginbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new
Builder - See Also:
-
newBuilder
Creates a newPluginbuilder instance using default values or not.- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newPluginbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
from- thePlugininstance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newPluginbuilder instance using the specified object as a basis.- Parameters:
from- thePlugininstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-