Class CoreExtensions

java.lang.Object
org.apache.maven.api.cli.extensions.CoreExtensions
All Implemented Interfaces:
Serializable

@Experimental @Generated @ThreadSafe @Immutable public class CoreExtensions extends Object implements Serializable
Extensions to load.
See Also:
  • Constructor Details

  • Method Details

    • getNamespaceUri

      public String getNamespaceUri()
    • getModelEncoding

      public String getModelEncoding()
    • getExtensions

      @Nonnull public List<CoreExtension> getExtensions()
      A set of build extensions to use from this project.
      Returns:
      a List<CoreExtension>
    • with

      Creates a new builder with this object as the basis.
      Returns:
      a Builder
    • withExtensions

      @Nonnull public CoreExtensions withExtensions(Collection<CoreExtension> extensions)
      Creates a new CoreExtensions instance using the specified extensions.
      Parameters:
      extensions - the new Collection<CoreExtension> to use
      Returns:
      a CoreExtensions with the specified extensions
    • newInstance

      @Nonnull public static CoreExtensions newInstance()
      Creates a new CoreExtensions instance. Equivalent to newInstance(true).
      Returns:
      a new CoreExtensions
      See Also:
    • newInstance

      @Nonnull public static CoreExtensions newInstance(boolean withDefaults)
      Creates a new CoreExtensions instance using default values or not. Equivalent to newBuilder(withDefaults).build().
      Parameters:
      withDefaults - the boolean indicating whether default values should be used
      Returns:
      a new CoreExtensions
    • newBuilder

      @Nonnull public static CoreExtensions.Builder newBuilder()
      Creates a new CoreExtensions builder instance. Equivalent to newBuilder(true).
      Returns:
      a new Builder
      See Also:
    • newBuilder

      @Nonnull public static CoreExtensions.Builder newBuilder(boolean withDefaults)
      Creates a new CoreExtensions builder instance using default values or not.
      Parameters:
      withDefaults - the boolean indicating whether default values should be used
      Returns:
      a new Builder
    • newBuilder

      @Nonnull public static CoreExtensions.Builder newBuilder(CoreExtensions from)
      Creates a new CoreExtensions builder instance using the specified object as a basis. Equivalent to newBuilder(from, false).
      Parameters:
      from - the CoreExtensions instance to use as a basis
      Returns:
      a new Builder
    • newBuilder

      @Nonnull public static CoreExtensions.Builder newBuilder(CoreExtensions from, boolean forceCopy)
      Creates a new CoreExtensions builder instance using the specified object as a basis.
      Parameters:
      from - the CoreExtensions instance to use as a basis
      forceCopy - the boolean indicating if a copy should be forced
      Returns:
      a new Builder