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 TypeMethodDescriptiongetLocation(Object key) Gets the location of the specified field in the input source.static 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
flushPluginMap, getPlugins, getPluginsAsMap, newBuilder, newBuilder
-
Method Details
-
getLocation
Gets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker- Overrides:
getLocationin classPluginContainer
-
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
-