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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create PluginManagement instances.
- 
Method SummaryModifier 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.PluginContainergetLocation, getPlugins, getPluginsAsMap, newBuilder, newBuilder, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.maven.api.model.InputLocationTrackergetLocation
- 
Method Details- 
withCreates a new builder with this object as the basis.- Overrides:
- within class- PluginContainer
- Returns:
- a Builder
 
- 
withPluginsCreates a newPluginManagementinstance using the specified plugins.- Overrides:
- withPluginsin class- PluginContainer
- Parameters:
- plugins- the new- Collection<Plugin>to use
- Returns:
- a PluginManagementwith the specified plugins
 
- 
newInstanceCreates a newPluginManagementinstance. Equivalent tonewInstance(true).- Returns:
- a new PluginManagement
- See Also:
 
- 
newInstanceCreates 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
 
- 
newBuilderCreates a newPluginManagementbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newPluginManagementbuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newPluginManagementbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- PluginManagementinstance 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- the- PluginManagementinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
 
-