Package org.apache.maven.api.model
Class PluginConfiguration
java.lang.Object
org.apache.maven.api.model.PluginContainer
org.apache.maven.api.model.PluginConfiguration
- All Implemented Interfaces:
Serializable
,InputLocationTracker
- Direct Known Subclasses:
BuildBase
@Experimental
@Generated
@ThreadSafe
@Immutable
public class PluginConfiguration
extends PluginContainer
implements Serializable, InputLocationTracker
Contains the plugins management information for the project.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class used to create PluginConfiguration instances. -
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor for this class, to be called from its subclasses andPluginConfiguration.Builder
. -
Method Summary
Modifier and TypeMethodDescriptionDefault plugin information to be made available for reference by projects derived from this one.static PluginConfiguration.Builder
Creates a newPluginConfiguration
builder instance.static PluginConfiguration.Builder
newBuilder
(boolean withDefaults) Creates a newPluginConfiguration
builder instance using default values or not.static PluginConfiguration.Builder
Creates a newPluginConfiguration
builder instance using the specified object as a basis.static PluginConfiguration.Builder
newBuilder
(PluginConfiguration from, boolean forceCopy) Creates a newPluginConfiguration
builder instance using the specified object as a basis.static PluginConfiguration
Creates a newPluginConfiguration
instance.static PluginConfiguration
newInstance
(boolean withDefaults) Creates a newPluginConfiguration
instance using default values or not.toString()
with()
Creates a new builder with this object as the basis.withPluginManagement
(PluginManagement pluginManagement) Creates a newPluginConfiguration
instance using the specified pluginManagement.withPlugins
(Collection<Plugin> plugins) Creates a newPluginConfiguration
instance using the specified plugins.Methods inherited from class org.apache.maven.api.model.PluginContainer
getImportedFrom, getLocation, getLocationKeys, getLocationKeyStream, getPlugins, getPluginsAsMap, newBuilder, newBuilder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.maven.api.model.InputLocationTracker
getImportedFrom, getLocation
-
Constructor Details
-
PluginConfiguration
Constructor for this class, to be called from its subclasses andPluginConfiguration.Builder
.- See Also:
-
-
Method Details
-
getPluginManagement
Default plugin information to be made available for reference by projects derived from this one. This plugin configuration will not be resolved or bound to the lifecycle unless referenced. Any local configuration for a given plugin will override the plugin's entire definition here.- Returns:
- a
PluginManagement
-
with
Creates a new builder with this object as the basis.- Overrides:
with
in classPluginContainer
- Returns:
- a
Builder
-
withPlugins
Creates a newPluginConfiguration
instance using the specified plugins.- Overrides:
withPlugins
in classPluginContainer
- Parameters:
plugins
- the newCollection<Plugin>
to use- Returns:
- a
PluginConfiguration
with the specified plugins
-
withPluginManagement
Creates a newPluginConfiguration
instance using the specified pluginManagement.- Parameters:
pluginManagement
- the newPluginManagement
to use- Returns:
- a
PluginConfiguration
with the specified pluginManagement
-
newInstance
Creates a newPluginConfiguration
instance. Equivalent tonewInstance(true)
.- Returns:
- a new
PluginConfiguration
- See Also:
-
newInstance
Creates a newPluginConfiguration
instance using default values or not. Equivalent tonewBuilder(withDefaults).build()
.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
PluginConfiguration
-
newBuilder
Creates a newPluginConfiguration
builder instance. Equivalent tonewBuilder(true)
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newPluginConfiguration
builder instance using default values or not.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newPluginConfiguration
builder instance using the specified object as a basis. Equivalent tonewBuilder(from, false)
.- Parameters:
from
- thePluginConfiguration
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
@Nonnull public static PluginConfiguration.Builder newBuilder(PluginConfiguration from, boolean forceCopy) Creates a newPluginConfiguration
builder instance using the specified object as a basis.- Parameters:
from
- thePluginConfiguration
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-
toString
- Overrides:
toString
in classPluginContainer
- See Also:
-