Interface Packaging

All Superinterfaces:
ExtensibleEnum

@Experimental @Immutable public interface Packaging extends ExtensibleEnum
Interface representing a Maven project packaging.

TODO: define how to plug in new packaging definitions using the SPI. the packaging are currently defined by Maven 3 Provider<LifecycleMapping>

Since:
4.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    id()
    The packaging id.
    default Language
    The language of this packaging.
    Returns the binding to use specifically for this packaging keyed by lifecycle id.
    The type of main artifact produced by this packaging.
  • Method Details

    • id

      The packaging id.
      Specified by:
      id in interface ExtensibleEnum
      Returns:
      the id
    • language

      @Nonnull default Language language()
      The language of this packaging.
    • type

      @Nonnull Type type()
      The type of main artifact produced by this packaging.
    • plugins

      Returns the binding to use specifically for this packaging keyed by lifecycle id. This will be used instead of the default packaging definition.