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 informations for the project.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class used to create PluginConfiguration instances. -
Method Summary
Modifier and TypeMethodDescriptiongetLocation
(Object key) Gets the location of the specified field in the input source.Default 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
flushPluginMap, getPlugins, getPluginsAsMap, newBuilder, newBuilder
-
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
-
getLocation
Gets the location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
- Overrides:
getLocation
in classPluginContainer
-
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:
-