Class CoreExtension
java.lang.Object
org.apache.maven.api.cli.extensions.CoreExtension
- All Implemented Interfaces:
- Serializable
@Experimental
@Generated
@ThreadSafe
@Immutable
public class CoreExtension
extends Object
implements Serializable
Describes a build extension to utilise.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create CoreExtension instances.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCoreExtension(CoreExtension.Builder builder) Constructor for this class, to be called from its subclasses andCoreExtension.Builder.
- 
Method SummaryModifier and TypeMethodDescriptionThe artifact ID of the extension.The class loading strategy: 'self-first' (the default), 'parent-first' (loads classes from the parent, then from the extension) or 'plugin' (follows the rules from extensions defined as plugins).The group ID of the extension's artifact.getId()Gets the identifier of the extension.The version of the extension.static CoreExtension.BuilderCreates a newCoreExtensionbuilder instance.static CoreExtension.BuildernewBuilder(boolean withDefaults) Creates a newCoreExtensionbuilder instance using default values or not.static CoreExtension.BuildernewBuilder(CoreExtension from) Creates a newCoreExtensionbuilder instance using the specified object as a basis.static CoreExtension.BuildernewBuilder(CoreExtension from, boolean forceCopy) Creates a newCoreExtensionbuilder instance using the specified object as a basis.static CoreExtensionCreates a newCoreExtensioninstance.static CoreExtensionnewInstance(boolean withDefaults) Creates a newCoreExtensioninstance using default values or not.with()Creates a new builder with this object as the basis.withArtifactId(String artifactId) Creates a newCoreExtensioninstance using the specified artifactId.withClassLoadingStrategy(String classLoadingStrategy) Creates a newCoreExtensioninstance using the specified classLoadingStrategy.withConfiguration(XmlNode configuration) Creates a newCoreExtensioninstance using the specified configuration.withGroupId(String groupId) Creates a newCoreExtensioninstance using the specified groupId.withVersion(String version) Creates a newCoreExtensioninstance using the specified version.
- 
Constructor Details- 
CoreExtensionConstructor for this class, to be called from its subclasses andCoreExtension.Builder.- See Also:
 
 
- 
- 
Method Details- 
getGroupIdThe group ID of the extension's artifact.- Returns:
- a String
 
- 
getArtifactIdThe artifact ID of the extension.- Returns:
- a String
 
- 
getVersionThe version of the extension.- Returns:
- a String
 
- 
getClassLoadingStrategyThe class loading strategy: 'self-first' (the default), 'parent-first' (loads classes from the parent, then from the extension) or 'plugin' (follows the rules from extensions defined as plugins).- Returns:
- a String
 
- 
getConfiguration- Returns:
- a XmlNode
 
- 
withCreates a new builder with this object as the basis.- Returns:
- a Builder
 
- 
withGroupIdCreates a newCoreExtensioninstance using the specified groupId.- Parameters:
- groupId- the new- Stringto use
- Returns:
- a CoreExtensionwith the specified groupId
 
- 
withArtifactIdCreates a newCoreExtensioninstance using the specified artifactId.- Parameters:
- artifactId- the new- Stringto use
- Returns:
- a CoreExtensionwith the specified artifactId
 
- 
withVersionCreates a newCoreExtensioninstance using the specified version.- Parameters:
- version- the new- Stringto use
- Returns:
- a CoreExtensionwith the specified version
 
- 
withClassLoadingStrategyCreates a newCoreExtensioninstance using the specified classLoadingStrategy.- Parameters:
- classLoadingStrategy- the new- Stringto use
- Returns:
- a CoreExtensionwith the specified classLoadingStrategy
 
- 
withConfigurationCreates a newCoreExtensioninstance using the specified configuration.- Parameters:
- configuration- the new- XmlNodeto use
- Returns:
- a CoreExtensionwith the specified configuration
 
- 
newInstanceCreates a newCoreExtensioninstance. Equivalent tonewInstance(true).- Returns:
- a new CoreExtension
- See Also:
 
- 
newInstanceCreates a newCoreExtensioninstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new CoreExtension
 
- 
newBuilderCreates a newCoreExtensionbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newCoreExtensionbuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newCoreExtensionbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- CoreExtensioninstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newCoreExtensionbuilder instance using the specified object as a basis.- Parameters:
- from- the- CoreExtensioninstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
- 
getIdGets the identifier of the extension.- Returns:
- The extension id in the form <groupId>:<artifactId>:<version>, nevernull.
 
 
-