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 information for the project.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create PluginConfiguration instances.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedConstructor for this class, to be called from its subclasses andPluginConfiguration.Builder.
- 
Method SummaryModifier and TypeMethodDescriptiongetLocation(Object key) Gets the location of the specified field in the input source.Gets the keys of the locations of the input source.Default plugin information to be made available for reference by projects derived from this one.static PluginConfiguration.BuilderCreates a newPluginConfigurationbuilder instance.static PluginConfiguration.BuildernewBuilder(boolean withDefaults) Creates a newPluginConfigurationbuilder instance using default values or not.static PluginConfiguration.BuilderCreates a newPluginConfigurationbuilder instance using the specified object as a basis.static PluginConfiguration.BuildernewBuilder(PluginConfiguration from, boolean forceCopy) Creates a newPluginConfigurationbuilder instance using the specified object as a basis.static PluginConfigurationCreates a newPluginConfigurationinstance.static PluginConfigurationnewInstance(boolean withDefaults) Creates a newPluginConfigurationinstance using default values or not.toString()with()Creates a new builder with this object as the basis.withPluginManagement(PluginManagement pluginManagement) Creates a newPluginConfigurationinstance using the specified pluginManagement.withPlugins(Collection<Plugin> plugins) Creates a newPluginConfigurationinstance using the specified plugins.Methods inherited from class org.apache.maven.api.model.PluginContainergetImportedFrom, getPlugins, getPluginsAsMap, newBuilder, newBuilderMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.maven.api.model.InputLocationTrackergetImportedFrom
- 
Constructor Details- 
PluginConfigurationConstructor for this class, to be called from its subclasses andPluginConfiguration.Builder.- See Also:
 
 
- 
- 
Method Details- 
getPluginManagementDefault 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
 
- 
getLocationGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
- Overrides:
- getLocationin class- PluginContainer
 
- 
getLocationKeysGets the keys of the locations of the input source.- Overrides:
- getLocationKeysin class- PluginContainer
 
- 
withCreates a new builder with this object as the basis.- Overrides:
- within class- PluginContainer
- Returns:
- a Builder
 
- 
withPluginsCreates a newPluginConfigurationinstance using the specified plugins.- Overrides:
- withPluginsin class- PluginContainer
- Parameters:
- plugins- the new- Collection<Plugin>to use
- Returns:
- a PluginConfigurationwith the specified plugins
 
- 
withPluginManagementCreates a newPluginConfigurationinstance using the specified pluginManagement.- Parameters:
- pluginManagement- the new- PluginManagementto use
- Returns:
- a PluginConfigurationwith the specified pluginManagement
 
- 
newInstanceCreates a newPluginConfigurationinstance. Equivalent tonewInstance(true).- Returns:
- a new PluginConfiguration
- See Also:
 
- 
newInstanceCreates a newPluginConfigurationinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new PluginConfiguration
 
- 
newBuilderCreates a newPluginConfigurationbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newPluginConfigurationbuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newPluginConfigurationbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- PluginConfigurationinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilder@Nonnull public static PluginConfiguration.Builder newBuilder(PluginConfiguration from, boolean forceCopy) Creates a newPluginConfigurationbuilder instance using the specified object as a basis.- Parameters:
- from- the- PluginConfigurationinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
- 
toString- Overrides:
- toStringin class- PluginContainer
- See Also:
 
 
-