Interface PackagingProvider

All Superinterfaces:
ExtensibleEnumProvider<Packaging>, SpiService

@Experimental @Consumer @Named public interface PackagingProvider extends ExtensibleEnumProvider<Packaging>
Service provider interface for registering custom Packaging implementations.

This interface allows plugins and extensions to define and register additional packaging types beyond the standard ones provided by Maven (like jar, war, ear, etc.). Implementations of this interface will be discovered through the Java ServiceLoader mechanism and their provided packaging types will be available throughout the Maven build process.

Example usage:

 public class CustomPackagingProvider implements PackagingProvider {
     public Collection<Packaging> provides() {
         return Arrays.asList(
             packaging("docker-image"),
             packaging("flatpak")
         );
     }
 }
 
Since:
4.0.0
See Also: