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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create PluginConfiguration instances. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor for this class, to be called from its subclasses andPluginConfiguration.Builder. -
Method Summary
Modifier and TypeMethodDescriptionDefault 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.PluginContainer
getImportedFrom, getLocation, getLocationKeys, getLocationKeyStream, getPlugins, getPluginsAsMap, newBuilder, newBuilderMethods 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
getImportedFrom, getLocation
-
Constructor Details
-
PluginConfiguration
Constructor for this class, to be called from its subclasses andPluginConfiguration.Builder.- See Also:
-
-
Method Details
-
getPluginManagement
Default 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
-
with
Creates a new builder with this object as the basis.- Overrides:
within classPluginContainer- Returns:
- a
Builder
-
withPlugins
Creates a newPluginConfigurationinstance using the specified plugins.- Overrides:
withPluginsin classPluginContainer- Parameters:
plugins- the newCollection<Plugin>to use- Returns:
- a
PluginConfigurationwith the specified plugins
-
withPluginManagement
Creates a newPluginConfigurationinstance using the specified pluginManagement.- Parameters:
pluginManagement- the newPluginManagementto use- Returns:
- a
PluginConfigurationwith the specified pluginManagement
-
newInstance
Creates a newPluginConfigurationinstance. Equivalent tonewInstance(true).- Returns:
- a new
PluginConfiguration - See Also:
-
newInstance
Creates 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
-
newBuilder
Creates a newPluginConfigurationbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new
Builder - See Also:
-
newBuilder
Creates a newPluginConfigurationbuilder instance using default values or not.- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newPluginConfigurationbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
from- thePluginConfigurationinstance 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- thePluginConfigurationinstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-
toString
- Overrides:
toStringin classPluginContainer- See Also:
-