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
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create PluginManagement instances. -
Method Summary
Modifier and TypeMethodDescriptionstatic PluginManagement.BuilderCreates a newPluginManagementbuilder instance.static PluginManagement.BuildernewBuilder(boolean withDefaults) Creates a newPluginManagementbuilder instance using default values or not.static PluginManagement.BuildernewBuilder(PluginManagement from) Creates a newPluginManagementbuilder instance using the specified object as a basis.static PluginManagement.BuildernewBuilder(PluginManagement from, boolean forceCopy) Creates a newPluginManagementbuilder instance using the specified object as a basis.static PluginManagementCreates a newPluginManagementinstance.static PluginManagementnewInstance(boolean withDefaults) Creates a newPluginManagementinstance using default values or not.with()Creates a new builder with this object as the basis.withPlugins(Collection<Plugin> plugins) Creates a newPluginManagementinstance using the specified plugins.Methods inherited from class org.apache.maven.api.model.PluginContainer
getLocation, getPlugins, getPluginsAsMap, newBuilder, newBuilder, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.maven.api.model.InputLocationTracker
getLocation
-
Method Details
-
with
Creates a new builder with this object as the basis.- Overrides:
within classPluginContainer- Returns:
- a
Builder
-
withPlugins
Creates a newPluginManagementinstance using the specified plugins.- Overrides:
withPluginsin classPluginContainer- Parameters:
plugins- the newCollection<Plugin>to use- Returns:
- a
PluginManagementwith the specified plugins
-
newInstance
Creates a newPluginManagementinstance. Equivalent tonewInstance(true).- Returns:
- a new
PluginManagement - See Also:
-
newInstance
Creates a newPluginManagementinstance 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 newPluginManagementbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new
Builder - See Also:
-
newBuilder
Creates a newPluginManagementbuilder instance using default values or not.- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newPluginManagementbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
from- thePluginManagementinstance to use as a basis- Returns:
- a new
Builder
-
newBuilder
@Nonnull public static PluginManagement.Builder newBuilder(PluginManagement from, boolean forceCopy) Creates a newPluginManagementbuilder instance using the specified object as a basis.- Parameters:
from- thePluginManagementinstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-