Package org.apache.maven.api.model
Class PluginManagement
java.lang.Object
org.apache.maven.api.model.PluginContainer
org.apache.maven.api.model.PluginManagement
- All Implemented Interfaces:
Serializable
,InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class PluginManagement
extends PluginContainer
implements Serializable, InputLocationTracker
Section for management of default plugin information for use in a group of POMs.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class used to create PluginManagement instances. -
Method Summary
Modifier and TypeMethodDescriptionstatic PluginManagement.Builder
Creates a newPluginManagement
builder instance.static PluginManagement.Builder
newBuilder
(boolean withDefaults) Creates a newPluginManagement
builder instance using default values or not.static PluginManagement.Builder
newBuilder
(PluginManagement from) Creates a newPluginManagement
builder instance using the specified object as a basis.static PluginManagement.Builder
newBuilder
(PluginManagement from, boolean forceCopy) Creates a newPluginManagement
builder instance using the specified object as a basis.static PluginManagement
Creates a newPluginManagement
instance.static PluginManagement
newInstance
(boolean withDefaults) Creates a newPluginManagement
instance using default values or not.with()
Creates a new builder with this object as the basis.withPlugins
(Collection<Plugin> plugins) Creates a newPluginManagement
instance using the specified plugins.Methods inherited from class org.apache.maven.api.model.PluginContainer
getLocation, getPlugins, getPluginsAsMap, newBuilder, newBuilder, toString
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
getLocation
-
Method Details
-
with
Creates a new builder with this object as the basis.- Overrides:
with
in classPluginContainer
- Returns:
- a
Builder
-
withPlugins
Creates a newPluginManagement
instance using the specified plugins.- Overrides:
withPlugins
in classPluginContainer
- Parameters:
plugins
- the newCollection<Plugin>
to use- Returns:
- a
PluginManagement
with the specified plugins
-
newInstance
Creates a newPluginManagement
instance. Equivalent tonewInstance(true)
.- Returns:
- a new
PluginManagement
- See Also:
-
newInstance
Creates a newPluginManagement
instance using default values or not. Equivalent tonewBuilder(withDefaults).build()
.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
PluginManagement
-
newBuilder
Creates a newPluginManagement
builder instance. Equivalent tonewBuilder(true)
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newPluginManagement
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 newPluginManagement
builder instance using the specified object as a basis. Equivalent tonewBuilder(from, false)
.- Parameters:
from
- thePluginManagement
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
@Nonnull public static PluginManagement.Builder newBuilder(PluginManagement from, boolean forceCopy) Creates a newPluginManagement
builder instance using the specified object as a basis.- Parameters:
from
- thePluginManagement
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-